Permalink
Browse files

changed gameclient to use location.host for the socket address

  • Loading branch information...
1 parent 539030d commit 2ed0f9d4ff7ed2acc134939407f9e51eb3e6cd08 @MrJaba committed May 19, 2010
Showing with 12 additions and 4 deletions.
  1. +2 −0 .bundle/config
  2. +7 −0 .gitignore
  3. +2 −2 Gemfile
  4. +1 −2 public/javascripts/game_client.js
View
2 .bundle/config
@@ -0,0 +1,2 @@
+---
+BUNDLE_WITHOUT: ""
View
7 .gitignore
@@ -0,0 +1,7 @@
+# Ignore all dotfiles...
+.*
+# except for .gitignore
+!.gitignore
+
+# Will exclude all .log files
+*.log
View
4 Gemfile
@@ -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'
View
3 public/javascripts/game_client.js
@@ -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(){

0 comments on commit 2ed0f9d

Please sign in to comment.