Take into account browserchannel 2.x changes

It's for browserchannel 2.x and websockets.
I've tested all together by https://github.com/zag2art/racer-highway