Socket connectivity up and running

This commit is contained in:
Jeremiah Billmann
2013-05-19 16:03:07 -04:00
parent fda56a0e75
commit c12bbbf0af
4 changed files with 17 additions and 4 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
window.GarageServerIO = (function (socketio) {
this.io = socketio;
var io = socketio,
var connectGarageServer = function (path) {
this.io.connect(path + '/garageserver');
connectToGarageServer = function (path) {
io.connect(path + '/garageserver');
};
return {
connectGarageServer: connectGarageServer
connectToGarageServer: connectToGarageServer
};
}) (io);
+5
View File
@@ -0,0 +1,5 @@
$(function () {
GarageServerIO.connectGarageServer('http://garageserver_io.jbillmann.c9.io/garageserver.io');
});
File diff suppressed because one or more lines are too long
+2
View File
@@ -5,5 +5,7 @@ html
link(rel='stylesheet', href='/stylesheets/style.css')
script(src='/socket.io/socket.io.js')
script(src='/garageserver.io.js')
script(src='/javascripts/jquery-2.0.0.min.js')
script(src='/javascripts/game.js')
body
block content