Property | Type | Description | |
---|---|---|---|
ClientSessionManagerMap | WebSocketClientSessionManager>.DictionaryList | ||
CloseEvent | |||
DataReceiveEvent | |||
MaxMessageSize | int | ||
MessageReceiveEvent | |||
OpenedEvent | |||
ServerThread | Thread |
Method | Description | |
---|---|---|
ProcessRead ( WebSocketSession session, long uid, string message ) : void |
process the recieved message and uid. if sessionManager does not exist, create add it to the client session manager map process the message and send the response message back to the client
|
|
RestoreContextManagerFromSessionId ( string incomingSessionId, string newSessionId, |
restore old sessionManager for recovered session. returns true if the session is restored, false if the old session doesn't exist thus cannot be restored.
|
|
Start ( ) : bool |
start server
|
|
Stop ( ) : void |
stop server
|
|
WebSocketOODSSServer ( |
Initialize a websocket oodss server object
|
|
processSessionClosed ( string sessionid ) : void |
Method | Description | |
---|---|---|
GenerateContextManager ( string sessionId, |
Generate WebSocketClientSessionManager
|
|
SendUpdateMessage ( string sessionId, |
called by the session manager to send out update message.
|
|
WebSocketServer_SessionClosed ( WebSocketSession session, CloseReason reason ) : void |
Method | Description | |
---|---|---|
CreatePacketFromMessageAndSend ( long uid, |
helper function to generate and send byte array message to client session.
|
|
SetUpWebSocketServer ( int port ) : void | ||
WebSocketServer_NewDataReceived ( WebSocketSession session, byte e ) : void | ||
WebSocketServer_NewMessageReceived ( WebSocketSession session, string e ) : void | ||
WebSocketServer_NewSessionConnected ( WebSocketSession session ) : void |
protected GenerateContextManager ( string sessionId, |
||
sessionId | string | client's session id |
translationScope | translation scope for the server | |
applicationObjectScope | Scope | server's application scope |
return |
public ProcessRead ( WebSocketSession session, long uid, string message ) : void | ||
session | WebSocketSession | the client's websocket session |
uid | long | uid of the message |
message | string | message in serialized form |
return | void |
public RestoreContextManagerFromSessionId ( string incomingSessionId, string newSessionId, |
||
incomingSessionId | string | received sesion id information |
newSessionId | string | |
newSessionManager | a new session manager | |
return | bool |
protected SendUpdateMessage ( string sessionId, |
||
sessionId | string | client's session id |
updateMessage | update message | |
return | void |
public WebSocketOODSSServer ( |
||
serverTranslationScope | translationscope for the oodss messages | |
applicationObjectScope | Scope | server object scope |
idleConnectionTimeout | int | |
maxMessageSize | int | |
port | int | |
return | System |
protected WebSocketServer_SessionClosed ( WebSocketSession session, CloseReason reason ) : void | ||
session | WebSocketSession | |
reason | CloseReason | |
return | void |
public processSessionClosed ( string sessionid ) : void | ||
sessionid | string | |
return | void |
protected DictionaryList ClientSessionManagerMap | ||
return | WebSocketClientSessionManager>.DictionaryList |
protected AutoResetEvent,System.Threading CloseEvent | ||
return |
protected AutoResetEvent,System.Threading DataReceiveEvent | ||
return |
protected AutoResetEvent,System.Threading MessageReceiveEvent | ||
return |
protected AutoResetEvent,System.Threading OpenedEvent | ||
return |