$sailsSocketBackend
service in module ngsails

Description

Service used by the $sailsSocket that delegates to a Socket.io connection (or in theory, any connection type eventually)

You should never need to use this service directly, instead use the higher-level abstraction: $sailsSocket.

During testing this implementation is swapped with $sailsMockBackend which can be trained with responses.

Dependencies