Provides a javascript API for sending text and binary messages to a XSockets server with a pub/sub pattern.