R
R
Ruslan2020-08-01 12:04:50
Flask
Ruslan, 2020-08-01 12:04:50

Why doesn't web socket work with js?

I'm trying to create a web socket using JS without wrappers and other things

new WebSocket("ws://www.example.com/socketserver");
but it can't even connect to the server, but if I use the Socket.IO library on the front, then everything connects fine.
On the back I have Flask-Socket.IO, can you explain to me why nothing works without wrappers on the front?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question