M
M
MyCrofon2017-09-19 21:36:11
Node.js
MyCrofon, 2017-09-19 21:36:11

Why does socket.io not found error occur when connecting?

I create a server in the index.js file in this way (I read in the official SOCKET.IO document that this can be done): In the client part, I connect like this: I address like this: Error 404:
var io = require('socket.io')(8000);
socket = io();
https://mysite.com/main

https://mysite.com/socket.io/?EIO=3&transport=polling&t=LwRdl0p

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-09-19
@BorisKorobkov

Telepaths are invited:
1. Node.js listens on port 8000, and the browser is accessing port 80.
2. socket on / main, and loading either at a different address
changes Nginx routes?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question