USoft Default Web Socket Provider |
The USoft Default Web Socket Provider allows you to implement a WebSocket service and gives you access to utility functions for connecting to the Rules Engine. It also provide access to broadcast and send functions.
The "USoft Default Web Socket Provider" functional type takes care of the websocket handshake and gives you the possibility to write your own implementation against the following event methods:
Error handlingRemove the onError method from the methods list if you want to fall back on USoft Service Framework's default implementation of error handling. In this default implementation: •The socket connection is kept open on error; •The error message is logged to the log file. If you created a new web socket service via Services, New WebSocket Service in the main menu, the default implementation of error handling is that: •The socket connection is kept open on error; •The error message is logged to the log file; •A message is sent back to the client that originated the request.
See also Example: USoft Default Web Socket Provider for a Chat application |