Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created January 4, 2012 15:22
Show Gist options
  • Select an option

  • Save jonleighton/1560517 to your computer and use it in GitHub Desktop.

Select an option

Save jonleighton/1560517 to your computer and use it in GitHub Desktop.
# No EM loop
# Send message on web socket and block waiting for next message from client
result = client.send('{"action":"visible", id: 23}')
# Handle the response
do_something(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment