session state decoupled.

This commit is contained in:
Miroslav Šedivý
2021-03-14 00:50:08 +01:00
parent 4a28307c1e
commit ecad2124fd
4 changed files with 8 additions and 19 deletions

View File

@ -20,11 +20,8 @@ type SessionState struct {
type Session interface {
ID() string
Profile() MemberProfile
// state
IsHost() bool
IsConnected() bool
State() SessionState
IsHost() bool
// websocket
SetWebSocketPeer(websocketPeer WebSocketPeer)