- add websocket mode to work with browserify