websocket ported to new protocol interface