Browse files

Unlocking from localhost.

  • Loading branch information...
1 parent e71d29d commit 5b462646660d807c450c277fb4a7469b3d0dc7b4 Andrew Libby committed May 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 views/index.haml
View
3 views/index.haml
@@ -10,13 +10,12 @@
.history
%input{ :type => 'text' }
-
:javascript
ChatterBox = function(name, chat_window) {
$this = this
$this.name = name
this.el = $(chat_window)
- this.socket = new WebSocket('ws://127.0.0.1:3001')
+ this.socket = new WebSocket('ws://#{request.host}:3001')
this.status = function(message) {
$this.el.find('.status').html(message)

0 comments on commit 5b46264

Please sign in to comment.