Skip to content

Instantly share code, notes, and snippets.

@anand9
Created March 2, 2013 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anand9/5070382 to your computer and use it in GitHub Desktop.
Save anand9/5070382 to your computer and use it in GitHub Desktop.
The faye client which sends messages,
<script type="text/javascript">
var client = new Faye.Client('http://localhost:9292/faye');
var message = client.publish('/foo', {text: message ,id: id, :number: number });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment