Low-level PureScript bindings for 'ws' library. Currently only contains WebSocket server functionality.
Sample usage in example/ directory.
NOTE: You MUST attach an error handler for each
onError, otherwise your program will crash and burn on any error that
occurs with the
WebSocketConnection (such as ECONNRESET from a client that
abruptly closed its end of the connection). This behavior is caused by the
- Have a look at the documentation/example
- Force user to supply
WebSocketConnectionevent handlers in
- Implement WebSocketClient bindings to make this usable also as a client library