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

TypeError: Cannot read property 'trim' of undefined #54

Open
Ekwugha opened this issue Nov 24, 2021 · 2 comments · May be fixed by #124
Open

TypeError: Cannot read property 'trim' of undefined #54

Ekwugha opened this issue Nov 24, 2021 · 2 comments · May be fixed by #124

Comments

@Ekwugha
Copy link

Ekwugha commented Nov 24, 2021

I get this error anytime I try to join. The error come from message.js.

This part to be precise...
const trimmedName = name.trim().toLowerCase();

@Ekwugha
Copy link
Author

Ekwugha commented Nov 24, 2021

Also if it join i get this error

websocket.js:50 WebSocket connection to 'ws://localhost:5000/socket.io/?EIO=4&transport=websocket' failed:
doOpen @ websocket.js:50
open @ transport.js:44
open @ socket.js:159
Socket @ socket.js:100
open @ manager.js:108
(anonymous) @ manager.js:320

@MAsmarNaeem
Copy link

solve the error by using this code
const varName = name.trim().toLowerCase();

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

Successfully merging a pull request may close this issue.

2 participants