All Classes Namespaces Functions Variables Groups Pages
WebSocketHandler Module

# Introduction to the WebSocketHandler Module

The WebSocketHandler module provides a handler to be used with the HttpServer module to provide server-side RFC-6455 based WebSocket services to clients.

To use this module, use `"%requires WebSocketHandler"` and `"%requires HttpServer"` in your code.

All the public symbols in the module are defined in the WebSocketHandler namespace.

The main classes provided in this module are:

- WebSocketHandler::WebSocketConnection
- WebSocketHandler::WebSocketHandler

# WebSocketHandler Release History

## Version 1.2

- fixed a bug parsing and generating the websocket close status code (issue 1216)

## Version 1.1

- bug fix: do not delete the connection object when the connection closes, remove it so it can go out of scope naturally to avoid excess exceptions in the server code
- added the WebSocketConnection::connectionClosed() method which is called when the connection is closed

## Version 1.0

- the initial version of the WebSocketHandler module