It needs to be HTTPS/WSS on the client side, in the library to work through these services. Probably just add a "secure" flag to the constructor.