C# Class AndroidFayeClient.WebsocketHandler

Inheritance: MessageHandler
Datei anzeigen Open project: Connorcpu/XamarinFayeClient Class Usage Examples

Public Methods

Method Description
ConnectRequest ( ) : void
Disconnect ( ) : void
Dispose ( ) : void
Handshake ( ) : void
Publish ( string channel, JToken data ) : void
Subscribe ( string channel ) : void
Unsubscribe ( string channel ) : void

Protected Methods

Method Description
Connect ( string uri ) : void
OnConnectResponse ( Newtonsoft.Json.Linq.JObject response ) : void
OnConnected ( ) : void
OnHandshakeResponse ( Newtonsoft.Json.Linq.JObject response ) : void

Private Methods

Method Description
OnMessageReceived ( object sender, WebSocket4Net.MessageReceivedEventArgs messageReceivedEventArgs ) : void
OnSocketClosed ( object sender, EventArgs eventArgs ) : void
OnSocketError ( object sender, SuperSocket errorEventArgs ) : void
OnSocketOpened ( object sender, EventArgs eventArgs ) : void
Send ( object obj, bool addClientId = true ) : void
WaitForTimeout ( ) : void

Method Details

Connect() protected method

protected Connect ( string uri ) : void
uri string
return void

ConnectRequest() public method

public ConnectRequest ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Handshake() public method

public Handshake ( ) : void
return void

OnConnectResponse() protected method

protected OnConnectResponse ( Newtonsoft.Json.Linq.JObject response ) : void
response Newtonsoft.Json.Linq.JObject
return void

OnConnected() protected method

protected OnConnected ( ) : void
return void

OnHandshakeResponse() protected method

protected OnHandshakeResponse ( Newtonsoft.Json.Linq.JObject response ) : void
response Newtonsoft.Json.Linq.JObject
return void

Publish() public method

public Publish ( string channel, JToken data ) : void
channel string
data JToken
return void

Subscribe() public method

public Subscribe ( string channel ) : void
channel string
return void

Unsubscribe() public method

public Unsubscribe ( string channel ) : void
channel string
return void