Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97288

net::ERR_FILE_NOT_FOUND error when using sockets in javascript

$
0
0

I am trying to make a chat program using sockets, the problem I am having is that when I try to run the program I get the following error:

GET file:///C:/socket.io/socket.io.js net::ERR_FILE_NOT_FOUND

the following things I have tried doing:

  • Using in the visual studio code's terminal npm install socket.io
  • Tried putting socket.io/socket.io.jsinstead of /socket.io/socket.io.js

Neither of the following have worked and I still get the same error: Here is the following code:

<script src="/socket.io/socket.io.js"></script>

If you need any more information please just send a message below


Viewing all articles
Browse latest Browse all 97288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>