node.js : failed to require socket.io from root -


my english not good, sorry.

i have clientfile chat.html. code started with:

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html>  <head>   <script src="socket.io-client.js"></script>   <script type="text/javascript">  //mit dem chatserver verbinden: var socket = io.connect("http://test01.my-wan.de:8080");  

at console of browser received "failed require socket.io root". file socket.io-client.js @ same directory of file chat.html. have read lot of posts problem, can't solve problem. can me??? thanks!

where did client file?

i asked similar question bit ago, socket.io vague on point. question seems duplicate of post here:

where socket.io client-side .js file located?

the answer question socket.io, server side, automatically places client side file, don't have manually place it. instructions on over first page of website.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -