From: Jason Woofenden Date: Fri, 1 Feb 2013 01:58:03 +0000 (-0500) Subject: have client's socket.io use same server as the page X-Git-Tag: v1.0~12 X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=commitdiff_plain;h=b02630f149b0cc5fa9257504a4f4c146af2e0750;hp=bfab5b72181420d6226cd419b056b01803efb45c have client's socket.io use same server as the page --- diff --git a/client.coffee b/client.coffee index 3cc8c87..6749a60 100644 --- a/client.coffee +++ b/client.coffee @@ -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