Node.js - Socket.io client file not being served by basic node web server

后端 未结 1 514
别那么骄傲
别那么骄傲 2021-01-13 21:07

I m very new to Node.js and Socket.io. I have built a very basic web server however when using it, I am unable to load the socket.io client file (I get a 404).

I am

相关标签:
1条回答
  • 2021-01-13 22:09

    You are probably running Socket.IO on a different port, so include the file in the following format:

    server:port/socket.io/socket.io.js

    0 讨论(0)
提交回复
热议问题