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 Resolver
The BabDev\WebSocket\Server\WAMP\MessageHandler\MessageHandlerResolver
interface defines a service locator for message handlers. The resolver will provide the message handler, which may include any decorating message middleware for that object. Fundamentally, this resolver service is similar in scope/design to the controller resolvers found in Symfony's HttpKernel component.
This package provides two implementations which should be suitable for the overwhelming majority of use cases:
- The "basic" default resolver supports creating a new instance of a message handler (without middleware or any required constructor arguments) or returning a handler set on the routing definition
- The PSR-11 compatible resolver supports retrieving a message handler from any PSR-11 service container or returning a handler set on the routing definition