WebSocket issues from Apple tablets #3

Closed
opened 2023-02-07 03:06:03 +00:00 by kirsle · 1 comment

I have one user who has trouble connecting to the chat room at all from an Apple tablet. I suspect an interaction between Mobile Safari and my WebSockets server isn't happy.

What I see: their username signs in and gets an "has entered the chat" message, and they immediately exit the chat again; 5 seconds later repeat the process. The chat front-end will reconnect every 5 seconds when the WebSocket is closed.

Interestingly: they must be able to connect to the WebSocket to send the login message, but then they get kicked immediately and the server logs:

2023-02-07 02:41:44 [ERROR] ReadLoop error(username): failed to get reader: failed to read frame header: EOF
2023-02-07 02:41:44 [ERROR] DeleteSubscriber: username
2023-02-07 02:41:45 [ERROR] not found

The error looks to be that the WebSocket connection is closed by the browser side.

I have one user who has trouble connecting to the chat room _at all_ from an Apple tablet. I suspect an interaction between Mobile Safari and my WebSockets server isn't happy. What I see: their username signs in and gets an "has entered the chat" message, and they immediately exit the chat again; 5 seconds later repeat the process. The chat front-end will reconnect every 5 seconds when the WebSocket is closed. Interestingly: they must be able to connect to the WebSocket to send the login message, but then they get kicked immediately and the server logs: ``` 2023-02-07 02:41:44 [ERROR] ReadLoop error(username): failed to get reader: failed to read frame header: EOF 2023-02-07 02:41:44 [ERROR] DeleteSubscriber: username 2023-02-07 02:41:45 [ERROR] not found ``` The error looks to be that the WebSocket connection is closed by the browser side.
kirsle added the
bug
label 2023-02-07 03:06:03 +00:00
Poster
Owner

This was resolved by disabling compression, see: https://github.com/nhooyr/websocket/issues/385

This was resolved by disabling compression, see: https://github.com/nhooyr/websocket/issues/385
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apps/BareRTC#3
There is no content yet.