C# Class Coap.Proxy.WebSocketService

显示文件 Open project: smeshlink/CoAP.Proxy Class Usage Examples

Public Methods

Method Description
SendToAll ( string message ) : void
SendToObserved ( string message, WebSocketSession s ) : void
Session_End ( ) : void
StartSuperWebSocketByProgramming ( ) : void
WebSocketService ( int port ) : System
socketServer_SessionClosed ( WebSocketSession session, CloseReason reason ) : void

Private Methods

Method Description
Application_End ( object sender, EventArgs e ) : void
Application_Error ( object sender, EventArgs e ) : void
Session_Start ( object sender, EventArgs e ) : void
socketServer_NewMessageReceived ( WebSocketSession session, string e ) : void
socketServer_NewSessionConnected ( WebSocketSession session ) : void

Method Details

SendToAll() public method

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

SendToObserved() public method

public SendToObserved ( string message, WebSocketSession s ) : void
message string
s WebSocketSession
return void

Session_End() public method

public Session_End ( ) : void
return void

StartSuperWebSocketByProgramming() public method

public StartSuperWebSocketByProgramming ( ) : void
return void

WebSocketService() public method

public WebSocketService ( int port ) : System
port int
return System

socketServer_SessionClosed() public method

public socketServer_SessionClosed ( WebSocketSession session, CloseReason reason ) : void
session WebSocketSession
reason CloseReason
return void