Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit to room not working when client is Safari 15.5 #4410

Open
Horsty80 opened this issue Jul 2, 2022 · 1 comment
Open

Emit to room not working when client is Safari 15.5 #4410

Horsty80 opened this issue Jul 2, 2022 · 1 comment

Comments

@Horsty80
Copy link

Horsty80 commented Jul 2, 2022

I have try with Chrome and Firefox is working fine that expected.

Describe the bug
I have a game with client is in react/typescript, server is in nodeJs/express/typescript
When I try to emit on specific room with

        socket.to(message.roomId).emit("start_game", { start: false, symbol: "o" });

The client doesn't get the event. So the listener method isn't fired.

  public async onStartGame(socket: Socket, listiner: (options: IStartGame) => void) {
    socket.on("start_game", () => console.log(options)); 
// attempt to get { start: false, symbol: "o" } but is never fired
  }

Notice that socket.emit is working fine.

        socket.emit("start_game", { start: true, symbol: "x" });

To Reproduce

Try to communicate with a server and a client using Safari 15.5

Server
"socket.io": "^4.5.1",

Client
"socket.io-client": "^4.5.1"

Platform:

  • on macOS Monterey version 12.4
  • Macbook pro

Additional context

@Horsty80 Horsty80 added the to triage Waiting to be triaged by a member of the team label Jul 2, 2022
@Horsty80
Copy link
Author

Any news on this ?
I can see some issues are open on similary item :

anthony-redFox added a commit to anthony-redFox/karma-up that referenced this issue Oct 23, 2023
anthony-redFox added a commit to Second-Live/karma-up that referenced this issue Oct 23, 2023
@darrachequesne darrachequesne added needs investigation and removed to triage Waiting to be triaged by a member of the team labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants