Switch to using strings for session IDs.

This commit is contained in:
Danila Fedorin 2018-05-25 15:14:45 -07:00
parent 0d31433b96
commit 6968a732d8
3 changed files with 4 additions and 4 deletions

2
Go.elm
View File

@ -20,7 +20,7 @@ initDummy : (Model, Cmd Msg)
initDummy = (Model
Black
"ws://localhost:3000"
1
"debug"
9
Nothing
Nothing

View File

@ -10,7 +10,7 @@ type alias Update = (Color, List Cell)
type alias Model =
{ sessionColor : Color
, sessionUrl : String
, sessionId : Int
, sessionId : String
, sessionSize : Int
, error : Maybe String
@ -21,7 +21,7 @@ type alias Model =
type alias Flags =
{ black : Bool
, url : String
, id : Int
, id : String
, size : Int
}

View File

@ -3,7 +3,7 @@ import Go.Types exposing (..)
import WebSocket
wsUrl : Model -> String
wsUrl m = (m.sessionUrl ++ "/game/" ++ (toString m.sessionId))
wsUrl m = (m.sessionUrl ++ "/game/" ++ toString m.sessionId)
encodeCell : Cell -> String
encodeCell ((x, y), c) = "place "