Emitting events
Prerequisites#
Enter server endpoint and connect successfully.
In this article, we'll learn all about emitters.
Directions#
- Navigate to the
Emittertab below the URL bar. Emittertab contained the 2 components.CollectionandEmitter playground. We'll learn about theEmitters playgroundhere. You can read onCollectionfrom here.
Adding and sending emitters#
- Navigate to the
Emitter playgroundand set the cursor to theEnter emitter name - Enter the emitter's name. For example, in our example, it's a
new message. Select the body type fromJSON,Text,File,Array buffer, andArray buffer view. For example, select theTextand enter a message likeHello from SocketIO client. - To send the emitter, click the
Sendbutton (Orange/Green button with a play icon.)
Passing the various arguments#
In Firecamp you can pass multiple arguments inside the emitter and test them.
- To add a new argument click
+before theArg 1. - You can switch between the arguments to test the emitters and review the response.
- To remove the particular argument, click the
X
Ack on callback#
To receive the Acknowledgement on Call back, check the Ack at the end of the arguments list.