Added the ability to override Websocket creation