There is no fundamental difference between regular pipes and web sockets pipes. The only difference is that instead of throwing
HttpException, you should use
WsException. In addition, all pipes will be only applied to the
data parameter (because validating or transforming
client instance is useless).
info Hint The
WsExceptionclass is exposed from
The following example uses a manually instantiated method-scoped pipe. Just as with HTTP based applications, you can also use gateway-scoped pipes (i.e., prefix the gateway class with a