Make websocket_req() an opaque type