C# Class Araqne.Web.WebSocket

显示文件 Open project: araqne/webfx

Public Methods

Method Description
Close ( ) : void
Close ( Exception cause ) : void
Send ( string text ) : void
WebSocket ( Uri uri ) : System

Private Methods

Method Description
BuildText ( ReadContext ctx ) : string
Connect ( ) : void
GetHeader ( IDictionary headers, string name ) : string
NewHandshakeRequest ( string webSocketKey ) : string
NewWebSocketKey ( ) : string
ReadCallback ( IAsyncResult result ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Close() public method

public Close ( Exception cause ) : void
cause System.Exception
return void

Send() public method

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

WebSocket() public method

public WebSocket ( Uri uri ) : System
uri System.Uri
return System