Version Not Yet Released
You are viewing the documentation for the 1.x branch of the WebSocket Server package which has not yet been released. Be aware that the API for this version may change before release.
Message Handler
Message handlers, defined by the BabDev\WebSocket\Server\MessageHandler interface, are responsible for handling an incoming WAMP message. For RPC message handlers, they are responsible for sending the corresponding "CALLRESULT" or "CALLERROR" message back to the client.
Message handlers are separated into two groups:
- RPC message handlers, represented by
BabDev\WebSocket\Server\RPCMessageHandlerimplementations - Topic (PubSub) message handlers, represented by
BabDev\WebSocket\Server\TopicMessageHandlerimplementations
This means a message handler can support both RPC and Topic messages or a single message type.