C# 클래스 WebStreams.Server.WebSocket

The web socket context.
상속: IDisposable
파일 보기 프로젝트 열기: WebStreams/WebStreams.Server

공개 메소드들

메소드 설명
Close ( int closeStatus, string closeDescription ) : Task

Close the connection with the client.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReceiveString ( ) : Task

Receives and returns a string to the client.

Send ( ArraySegment data, int messageType, bool endOfMessage ) : Task

Send the provided data to the client.

Send ( string message ) : Task

Send the provided message to the client.

WebSocket ( object>.IDictionary context ) : System

Initializes a new instance of the WebSocket class.

비공개 메소드들

메소드 설명
ThrowIfDisposed ( ) : void

Throws ObjectDisposedException if this instance has been disposed.

메소드 상세

Close() 공개 메소드

Close the connection with the client.
public Close ( int closeStatus, string closeDescription ) : Task
closeStatus int /// The close status. ///
closeDescription string /// The close description. ///
리턴 Task

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

ReceiveString() 공개 메소드

Receives and returns a string to the client.
public ReceiveString ( ) : Task
리턴 Task

Send() 공개 메소드

Send the provided data to the client.
public Send ( ArraySegment data, int messageType, bool endOfMessage ) : Task
data ArraySegment /// The data. ///
messageType int /// The message type. ///
endOfMessage bool /// A value indicating whether this is the end of the message. ///
리턴 Task

Send() 공개 메소드

Send the provided message to the client.
public Send ( string message ) : Task
message string /// The message. ///
리턴 Task

WebSocket() 공개 메소드

Initializes a new instance of the WebSocket class.
public WebSocket ( object>.IDictionary context ) : System
context object>.IDictionary /// The context. ///
리턴 System