WebSocket local event receiver is an internal event receiver that comes with WSO2 products by default. You can configure it with XML, text, and JSON input mapping types.
The websocket-local
event receiver should be used if the event source is a web socket client. Such event sources need to connect to the inbuilt websocket server of WSO2 CEP for the CEP to receive events. However, if the event source is a web socket server, the CEP should connect to it in order to receive events. In such scenarios, use the WebSocket Event Receiver.
Creating a WebSocket local event receiver
For instructions on creating a WebSocket local event receiver, see Configuring Event Receivers.
Configuring adapter properties
There are not any adapter-specific properties for the WebSocket local event receiver as shown below.
Related samples
For more information on websocket-local
event receiver type, see the following sample in WSO2 CEP Documentation.