WebSocket and SSE client for iPhone and iPad
Updated
Routix Dash is a WebSocket, Socket.IO and SSE (Server-Sent Events) client for iPhone and iPad. Connect to a stream, watch the messages arrive live, pick fields from them, and send messages back with a tap. Unlike a plain test client, it keeps the result as a dashboard you can open again any time.
Use it to test a stream while you build it, or to follow live prices, device events or chat messages every day.
1. Create the connection
Open the menu → WebSocket connections → Add WebSocket connection:
- Name — any name
- URL — the address of the stream, for example
wss://echo.websocket.org - Transport — WebSocket, or Server-Sent Events (SSE) for an SSE stream
Tap Test to try it, then the save tick.
A Socket.IO server needs nothing special: the app tries Socket.IO first when it makes sense and falls back to a plain WebSocket.
2. Receive messages
Open the menu → Data sources → Add data source. Set Data source type to WebSocket and Connection to the one you created.
Leave Message events empty to accept every message. For Socket.IO, list the event names to follow; for SSE, the event names or a pattern with *. Socket.IO rooms go under Rooms.
Tap the save tick.
3. Show them
On a data section, tap Add data piece manually and pick Design your own data piece. Set the WebSocket source as the root data source and add a Label. It shows each message as it arrives.
Text, JSON and pictures are recognized automatically. For JSON, show one field: turn Inherited off on the Label, then under Data transformers pipe tap Add... → Simple expression and enter, for example, value?.price.
Add a Chart with the same expression to draw the values as they come in.
4. Send a message with a tap
Add a Button to the data piece. Under Events → On tap, tap Add... and choose WebSocket send. Pick the connection and type the message under Payload, for example:
{"action": "subscribe", "channel": "ticker"}
Many streams send nothing until you subscribe. To send such a message automatically every time the connection opens, add the same WebSocket send to the connection's On connected actions, under Events on the connection.
Tips
- Login headers and tokens. Set headers on the connection. Fields can use
{{ env.my_key }}, so a token is stored once under ENV variables. - Know where a message came from. The event name and the connection address are available in transformers as
ctx.transport. - Reconnects. The app reconnects on its own. The connection log shows each attempt.
- Request and answer APIs. For an API you call on a schedule, see Monitor a REST API from your iPhone.