C# Class Fleck.WebSocketConnection

Inheritance: IWebSocketConnection
Afficher le fichier Open project: directi/Fleck Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Close ( ) : void
Résultat void

Close() public méthode

public Close ( int code ) : void
code int
Résultat void

Send() public méthode

public Send ( byte message ) : void
message byte
Résultat void

Send() public méthode

public Send ( string message ) : void
message string
Résultat void

StartReceiving() public méthode

public StartReceiving ( ) : void
Résultat void

WebSocketConnection() public méthode

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