transfer byte arrays instead of json over websocket