Configuring connections
In Firecamp, you can configure advance message request to test the websocket API. You can test multiple live connections, headers and query params.
Prerequisites#
Enter the server endpoint and enter the message payload you want to test.
Establishing multiple connections#
Firecamp offers functionality where you can connect your websocket server with multiple virtual clients and connections. You can either send a message to one or all. Below is the direction to understand how to create multiple clients and configure headers and query params.
Direction#
Add new connection#
In Firecamp, by default, there is a Default connection already added.
- Go to
Connectionsin the message playground. Click the+ New Connection - Add connection name.
- You can view all the current connections in the connection dropdown from the message playground and from the URL bar beside the
connectbutton.
Switching between connection#
- You can either change the connection from the message playground or the URL bar in the middle dropdown before the save button.
Configure headers & query params#
There is 3 option to configured connections.
Config
Headers
Query params
Config :You can add some advanced level options like
PingandPing IntervalHeaders By default in Firecamp, there is
Sec-WebSocket-Extensions,Sec-WebSocket-ProtocolandSec-WebSocket-VersionYou add custom headers withKeyandValueQuery params You can pass the query params in request by adding the value of
KeyadValueRemove connection#
Select the connection that you would like to remove from the connection drop-down in the message playground.
Click the
Deleteicon, besides the connection name.