websocket middleman between browsers and netpocket clients