Message problems
What to check when a client does not receive what you send.
On this page
My client gets no messages. What do I check?
- The client is connected: a WebSocket client is listed on the Clients page.
- The token can read the channel: open the token on the Setup page and look at its channels. See Limit a token to channels.
- The request reaches OpenSync and answers
200. A404means a wrong method or path; see Send data over HTTP.
Do clients get the messages they missed?
- OpenSync sends each message only to the clients connected at that moment. To keep a history, turn on Log all requests.
Does the sender get its own WebSocket message?
Yes, when its token can read that channel. Skip messages you sent yourself in your client, for example by a field in body.
Why is body a string with numbers in quotes?
Form data and query arguments always arrive as strings. Send JSON with Content-Type: application/json to keep numbers and nested objects. See Message format.
A file link answers 404. Why?
Links work only until OpenSync restarts. Download files as soon as the message arrives. See Send files.
My upload answers 431. Why?
The request is larger than about 2 MB. See Status codes and limits.
Can I use EventSource in my web page?
Only from a page on the same address as OpenSync. From any other address, use WebSocket. See Listen in a web page.