I think I'm going to make native websockets queries use the exact query as the corresponding http interface on the same endpoint. This would mean the websocket request is a string value matching the corresponding uri and query string. So the server just passes this on to the same parser, and then dispatches the resulting internal rpc object to the existing dispatcher.