Listening to events
Prerequisites#
- Enter server endpoint and connect successfully.
- Add emitters and send them to the server.
In this article, we'll learn all about the listeners.
Directions#
- Navigate to the
Emittertab below the URL bar.
Add new listeners#
- Enter the listener's name and press enter or
Add ListenersFor example, enternew message. Up to this, we have just added the listeners. We're yet to listen to them.
Listing to the listeners#
To listing the events,
- Navigate to the right-side panel, you can find the listeners list in the dropdown.
- Click the dropdown, you'll find the added listeners,
new message. Hover the listeners and click theListentab. - As soon as you'll listen to the new message event, in the response tab you'll receive the
L_ONevent andListening on the event: new message.