Instantly share code, notes, and snippets.

@val314159 /
Last active Sep 30, 2015

What would you like to do?

ypsp v1.0 - yotta pub-sub protocol

This protocol sits on top of something like a websocket or similar transport layer.


  • Server says hello, also tells you your sessionid


  • Client subscribes to a bunch of channels (not including "sessionid" or "*")


  • Client publishes a value over a channel


  • Server publishes a wrapped message to the "*" channel


  • Other Client decides to say hello back


  • Original client hears the hello back


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment