03. Setting up an Event Emitter
In this action you will learn to configure an event emitter in the Socket.io integration
Prerequisites
- A configured and connected Socket.io
- Active Event listener
Directions
- Navigate to the
Emit Event
bar to set up a new event emitter for your Socket.io connection. - Enter the Event Emitter name in the field with the
Emit Event Name
placeholder. - Enter any args you want to pass as key-value pairs in the
Arguments
tab. You can set multiple arguments by opening a newArgument
tab.In our example we'll add Emitter as
add user
andnew message
, add the argument as respectively
{
"username" : "Elon Musk"
}
{
"username": "Elon Musk",
"message": "Hey from Mars...."
}
- Click on the
Emit
button to Emit the event.
Awesome! Your Socket.io connecition is ready to test.
