JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
have client's socket.io use same server as the page
authorJason Woofenden <jason@jasonwoof.com>
Fri, 1 Feb 2013 01:58:03 +0000 (20:58 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 1 Feb 2013 01:58:03 +0000 (20:58 -0500)
client.coffee

index 3cc8c87..6749a60 100644 (file)
@@ -58,7 +58,7 @@ $ ->
        $body = $('body')
        $body.css backgroundColor: "##{palette[0]}", color: "##{palette[7]}"
 
-       socket = io.connect('http://localhost')
+       socket = io.connect('/')
 
        color_to_css = (i) ->
                # handle inverse bit