Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var io = require('socket.io')(httpServer, {path: '/mysubdir/socket.io'})`
  2.  
  3. <script src="http://www.example.com/mysubdir/socket.io/socket.io.js"></script>
  4.  
  5. var socket = io.connect('http://www.example.com', {path: "/mysubdir/socket.io"});`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement