node.js - Error in importing socket library client side -


i craeting server using express js , when client side want import socket.io.js library error

get http://localhost:3000/ net::err_connection_refused 

and when tried access http://localhost:3000/socket.io/socket.io.js error

cannot /socket.io/socket.io.js 

my client side code

<script src="/socket.io/socket.io.js"></script> <script type="text/javascript">     var socket = io("http://localhost:3000"); </script> 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -