C# Class Websockets.WP8.WebsocketConnection

A Websocket connection
Inheritance: IWebSocketConnection
Mostrar archivo Open project: NVentimiglia/Websockets.PCL

Protected Properties

Property Type Description
websocket WebSocket4Net.WebSocket

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
Link ( ) : void

Factory Initializer

Open ( string url, string protocol = null, string authToken = null ) : void
Send ( string message ) : void

Private Methods

Method Description
Websocket_Closed ( object sender, EventArgs e ) : void
Websocket_Error ( object sender, SuperSocket.ClientEngine.ErrorEventArgs e ) : void
Websocket_MessageReceived ( object sender, WebSocket4Net.MessageReceivedEventArgs e ) : void
Websocket_Opened ( object sender, EventArgs e ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Link() public static method

Factory Initializer
public static Link ( ) : void
return void

Open() public method

public Open ( string url, string protocol = null, string authToken = null ) : void
url string
protocol string
authToken string
return void

Send() public method

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

Property Details

websocket protected_oe property

protected WebSocket,WebSocket4Net websocket
return WebSocket4Net.WebSocket