Method | Description | |
---|---|---|
Client ( |
Initializes a new instance of the Client class with the specified game server and underlying web socket connection.
|
|
Dispose ( ) : void |
Closes the web socket connection and disposes of this client.
|
|
SendError ( string source, string message ) : void |
Sends an error through the underlying web socket connection to the browser/client.
|
|
SendMessage ( string command ) : void |
Sends a message through the underlying web socket connection to the browser/client.
|
Method | Description | |
---|---|---|
Connected ( ) : void |
Event handler method for the "OnOpen" event from the web socket.
|
|
DiscardActiveRound ( ) : void | ||
Disconnected ( ) : void |
Event handler method for the "OnClose" event from the web socket.
|
|
FinalizeVote ( string vote ) : void | ||
FlipCards ( ) : void | ||
GetCardList ( ) : void | ||
NewRoundRequest ( string title ) : void | ||
ReceiveMessage ( string message ) : void |
Event handler method for the "OnMessage" event from the web socket.
|
|
RegisterAdmin ( string pass ) : void | ||
RegisterClient ( string name, string spectator ) : void | ||
RegisterVote ( string vote ) : void | ||
RestartRound ( ) : void | ||
SetCards ( string newCards ) : void | ||
SetSetting ( string key, string value ) : void | ||
SortCards ( ) : void | ||
SwapSpectator ( ) : void | ||
TakeMajority ( ) : void | ||
UndoVote ( ) : void |
public Client ( |
||
parent | The game server that this client is connected to. | |
connection | WebSocketConnection | The underlying web socket connection that is associated with this client. |
return | System |
public SendError ( string source, string message ) : void | ||
source | string | The source of the error. |
message | string | The error message. |
return | void |
public SendMessage ( string command ) : void | ||
command | string | The command to send. |
return | void |