Sockets to channels binding for martini. This is currently (2/17/2014) still WIP.
Package sockets
makes it fun to use websockets with Martini. Its aim is to provide an easy to use interface for socket handling which makes it possible to implement socket messaging with just one select
statement listening to different channels.
sockets.JSON
is a simple middleware that organizes websockets messages into any struct type you may wish for.
sockets.Messages
is a simple middleware that organizes websockets messages into string channels.
Have a look into the example directory to get a feeling for how to use the sockets package.