Skip to content

Commit

Permalink
Okay that doesn't work ...
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhelmet committed Apr 13, 2011
1 parent 103a096 commit f6b2687
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -10,5 +10,5 @@ update:
git submodule init
git submodule update
cat public/static/bookmarklet.coffee | coffee -bcs | yui-compressor --type js -o public/static/bookmarklet.js
mkdir -p pids logs
coffee -bc *.coffee && node app.js restart
mkdir -p {pids,logs}
coffee -bc *.coffee
4 changes: 2 additions & 2 deletions server.coffee
Expand Up @@ -48,11 +48,11 @@ app.get /\/go|bookmarklet\.js/, (req, res) ->
else
res.send("alert('Invalid request. Missing query params. Try making your bookmarklet again.');")

app.listen(9090)

socket = IO.listen(app)
socket.on 'connection', (client) ->
client.on 'message', (data) ->
json = JSON.parse(data)
json['client'] = client
Helpers.processSocketIO(json)

module.exports = app

0 comments on commit f6b2687

Please sign in to comment.