C# Class Fleck.WebSocketConnection

Inheritance: IWebSocketConnection
Exibir arquivo Open project: directi/Fleck Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Close ( int code ) : void
Send ( byte message ) : void
Send ( string message ) : void
StartReceiving ( ) : void
WebSocketConnection ( ISocket socket, Action initialize, WebSocketHttpRequest>.Func parseRequest, IHandler>.Func handlerFactory ) : System

Private Methods

Method Description
CloseSocket ( ) : void
CreateHandler ( IEnumerable data ) : void
HandleReadError ( Exception e ) : void
Read ( List data, byte buffer ) : void
SendBytes ( byte bytes, System.Action callback ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Close() public method

public Close ( int code ) : void
code int
return void

Send() public method

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

Send() public method

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

StartReceiving() public method

public StartReceiving ( ) : void
return void

WebSocketConnection() public method

public WebSocketConnection ( ISocket socket, Action initialize, WebSocketHttpRequest>.Func parseRequest, IHandler>.Func handlerFactory ) : System
socket ISocket
initialize Action
parseRequest WebSocketHttpRequest>.Func
handlerFactory IHandler>.Func
return System