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

Microsoft Edge Crushing Nodejs #85

Open
RobGrants opened this issue Apr 9, 2024 · 1 comment
Open

Microsoft Edge Crushing Nodejs #85

RobGrants opened this issue Apr 9, 2024 · 1 comment

Comments

@RobGrants
Copy link

RobGrants commented Apr 9, 2024

Great example, however it seems my Microsoft Edge v 123.0.2420.1 is killing the script every time I start typing in Edge.

Edge is receiving other messages from Chrome and Firefox without problem.

C:\Users\ted\NODEDEV\WEBSOCKET3\index.js:46
callback();
^

TypeError: callback is not a function
at Socket. (C:\Users\ted\NODEDEV\WEBSOCKET3\index.js:46:7)

Node.js v18.18.2
[nodemon] app crashed - waiting for file changes before starting...
[nodemon] restarting due to changes...
[nodemon] starting node index.js
server running at http://localhost:3000

How can I resolve sending messages by Edge?

@darrachequesne
Copy link
Member

callback being undefined probably means that the retries option is missing:

chat-example/index.html

Lines 28 to 34 in 07a183a

const socket = io({
auth: {
serverOffset: 0
},
ackTimeout: 10000,
retries: 3,
});

Reference: https://socket.io/docs/v4/client-options/#retries

Could you please check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants