function ServerConnection(someArgs){ var socket = io.connect('http://localhost:8888', { reconnect: false }); socket.on('disconnect', function(){ console.log("Server connection closed..."); }); socket.on('connect', function(){ console.log("Server connection opened..."); }); socket.on('resServerInfo', function(data){ console.log(data); }); return socket; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8356 | Joe Robinson |
Refactored files, old service version can be deleted. Improved base service structure. |
||
//guest/joe_robinson/Watcher/main/scripts/serverConnection.js | |||||
#1 | 8354 | Joe Robinson |
Added source files. Use 'npm install' to get necessary node_modules (socket.io, prettyjson, express). |