title: node Socket.io links how will give in server not localhost(wamp/xampp)
body: <p>I'm new to socket session but I learned how it will works in wamp/xampp localhost.
  But when I move to server that is hosting. it will not work.</p>
  
  <pre><code>&lt;script src="http://localhost:3000/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Above this work in wamp/xampp. but not found in hosting server.
  What should I give on src.
  My hosting is be like:
  aaa.bbb.com and its port is 8803 or
  bbb.com and its port is 8803.</p>
  
  <p>I have tried the ways are to be include as like </p>
  
  <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script src="http://aaa.bbb.com:3000/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script src="http://bbb.com:3000/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>My server side code is</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var socket = require('socket.io');
  var server = require('http').createServer(app);
  server.listen(3000);
  var io = socket.listen(server);
  var async = require('async');
  var mysql= require('mysql');
  var pool  = mysql.createPool({
     host     : 'XXXXX',
     user     : 'XXXXX',
     password : 'XXXX',
     database:'XXXXX',
   });
  
   var chatserver=require('./chatserver.js');
   var chatpage=io.of('/as/chatRoom').authorization(function (handshakeData, callback) {
   console.dir(handshakeData);
   handshakeData.page = '/welcome/chatRoom';
   callback(null, true);
   }).on('connection', function (socket) {
     console.dir(socket.handshake.page);
     chatserver.getUserFeeds(chatpage,socket,io,pool,async);
  });
  </code></pre>