Hey everyone, I was interested to Tyrus Server to deploy a Websocket server using Jakarta.
So I ends up wrapping this library hopefully you find it useful to your needs.
Library Functionality:
Use it with SessionInfo.close method to specify the status code.
Example Attached with html test client so you can test the server.
Download Additional Jars From here
have a good day everyone and happy new year..
So I ends up wrapping this library hopefully you find it useful to your needs.
Library Functionality:
- Initialize(EventName As String, contextpath As String, port As Int)
- Start
- Stop
- Private Sub EventName_onOpen (session As SessionInfo)
- Private Sub EventName_onMessage (session As SessionInfo, message As String)
- Private Sub EventName_onClose (session As SessionInfo, statusCode As int, reason As String)
- Private Sub EventName_onError (session As SessionInfo, errortext As String)
- Private Sub EventName_onException (methodName As String, Exception As String)
- Session_Id
- isOpen
- isSecure
- MaxIdleTimeout
- MaxTextMessageBufferSize
- Protocol
- ProtocolVersion
- sendMessage(message As String)
- close(statuscode as int, reason as string)
Use it with SessionInfo.close method to specify the status code.
Example Attached with html test client so you can test the server.
Download Additional Jars From here
have a good day everyone and happy new year..
Attachments
Last edited: