C# Class Gwupe.Cloud.Messaging.WebSocketMessageHandler

Inheritance: IWebSocketMessageHandler
Mostra file Open project: gwupe/Gwupe Class Usage Examples

Public Methods

Method Description
OnClose ( WebSocketConnection aConnection, int aCloseCode, string aCloseReason, bool aClosedByPeer ) : void
OnOpen ( WebSocketConnection aConnection ) : void
ProcessMessage ( String s ) : void
SendMessage ( Message message ) : void
WebSocketMessageHandler ( ConnectionMaintainer cm ) : System

Private Methods

Method Description
GetMessage ( MemoryStream rawData, bool finalFrame, int opCode ) : Message
ParseDataToMessage ( MemoryStream data ) : Message
ProcessMessage ( Message message ) : void
SanitiseMessage ( string messageString ) : string

Method Details

OnClose() public method

public OnClose ( WebSocketConnection aConnection, int aCloseCode, string aCloseReason, bool aClosedByPeer ) : void
aConnection Bauglir.Ex.WebSocketConnection
aCloseCode int
aCloseReason string
aClosedByPeer bool
return void

OnOpen() public method

public OnOpen ( WebSocketConnection aConnection ) : void
aConnection Bauglir.Ex.WebSocketConnection
return void

ProcessMessage() public method

public ProcessMessage ( String s ) : void
s String
return void

SendMessage() public method

public SendMessage ( Message message ) : void
message Gwupe.Cloud.Messaging.API.Message
return void

WebSocketMessageHandler() public method

public WebSocketMessageHandler ( ConnectionMaintainer cm ) : System
cm Gwupe.Cloud.Communication.ConnectionMaintainer
return System