preaction / Mercury

A message broker for WebSockets
Other
10 stars 8 forks source link

Add helper plugin #9

Closed preaction closed 8 years ago

preaction commented 9 years ago

It should be easy to use the broker from inside Mojolicious, so add a Plugin for it.

preaction commented 8 years ago

This is more about using the configuration to connect (and stay connected) to the broker. Otherwise, it's just a bunch of helpers that return Mojo::UserAgent objects connected to WebSockets.

We should keep track of those UAs so that we can reconnect automatically when necessary, but we also need to allow people access to those UAs, so we need to re-use them if possible.

preaction commented 8 years ago

This doesn't really make sense now that #34 is done.