C# Class RohBot.Connection

Inheritance: WebSocketSharp.Server.WebSocketBehavior
显示文件 Open project: Rohansi/RohBot Class Usage Examples

Public Methods

Method Description
Login ( string username, string password, List tokens ) : void
Register ( string username, string password ) : void
Send ( RohBot.Packet packet ) : void
Send ( string data ) : void
SendJoinRoom ( Room room ) : void
SendLeaveRoom ( Room room ) : void
SendSysMessage ( string message ) : void

Protected Methods

Method Description
OnError ( Exception exception ) : void
OnMessage ( string message ) : void
OnOpen ( ) : void

Method Details

Login() public method

public Login ( string username, string password, List tokens ) : void
username string
password string
tokens List
return void

OnError() protected method

protected OnError ( Exception exception ) : void
exception System.Exception
return void

OnMessage() protected method

protected OnMessage ( string message ) : void
message string
return void

OnOpen() protected method

protected OnOpen ( ) : void
return void

Register() public method

public Register ( string username, string password ) : void
username string
password string
return void

Send() public method

public Send ( RohBot.Packet packet ) : void
packet RohBot.Packet
return void

Send() public method

public Send ( string data ) : void
data string
return void

SendJoinRoom() public method

public SendJoinRoom ( Room room ) : void
room RohBot.Rooms.Room
return void

SendLeaveRoom() public method

public SendLeaveRoom ( Room room ) : void
room RohBot.Rooms.Room
return void

SendSysMessage() public method

public SendSysMessage ( string message ) : void
message string
return void