Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed gameclient to use location.host for the socket address

  • Loading branch information...
commit 2ed0f9d4ff7ed2acc134939407f9e51eb3e6cd08 1 parent 539030d
Tom Crinson authored
2  .bundle/config
View
@@ -0,0 +1,2 @@
+---
+BUNDLE_WITHOUT: ""
7 .gitignore
View
@@ -0,0 +1,7 @@
+# Ignore all dotfiles...
+.*
+# except for .gitignore
+!.gitignore
+
+# Will exclude all .log files
+*.log
4 Gemfile
View
@@ -1,12 +1,12 @@
#Gemfile for Bundler
source "http://gemcutter.org"
-
+gem 'thin'
gem 'activesupport', '3.0.0.beta'
gem 'activemodel', '3.0.0.beta'
gem "arel", '0.2.1'
gem "rack", "1.1.0"
-gem "mysqlplus", "0.1.1"
+#gem "mysqlplus", "0.1.1"
gem 'i18n', "0.3.3"
gem "eventmachine", "0.12.10"
gem 'usher'
3  public/javascripts/game_client.js
View
@@ -1,6 +1,5 @@
var GameClient = function(){
-
- var socket = new WebSocket('ws://bomberman.heroku.com/game');
+ var socket = new WebSocket('ws://'+location.host+'/game');
var callbacks = {};
var initWebSocket = function(){
Please sign in to comment.
Something went wrong with that request. Please try again.