one format for both websocket and http requests