-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Error URI Resolver | ||
|
||
Per the [WAMP v1](https://web.archive.org/web/20150419051041/http://wamp.ws/spec/wamp1/) specification, a "CALLERROR" message must include an error URI describing the error in its payload. The `BabDev\WebSocket\Server\WAMP\ErrorUriResolver` interface describes a service that can be used to accomplish this. | ||
|
||
The specification, however, does not specify any error identifiers that must be supported. Therefore, it is up to the application to decide whether they will use this resolver in their [message handlers](/open-source/packages/websocket-server/docs/1.x/message-handler) or [message middleware](/open-source/packages/websocket-server/docs/1.x/middleware) when handling RPC messages. Because this library emits "CALLERROR" messages if the [`BabDev\WebSocket\Server\WAMP\Middleware\DispatchMessageToHandler`](/open-source/packages/websocket-server/docs/1.x/middleware/dispatch-message-to-handler) middleware cannot locate a message handler for the given request, the error URI resolver is provided in part to allow applications to customize the URI used for these errors. The default `BabDev\WebSocket\Server\WAMP\DefaultErrorUriResolver` implementation only supports the `not-found` error type and will return a generic URI for all other error types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters