pybotters.ClientWebSocketResponse¶
- class pybotters.ClientWebSocketResponse(*args, **kwargs)¶
Class for handling client-side websockets.
This class is a subclass of
aiohttp.ClientWebSocketResponse.Methods
__init__(*args, **kwargs)close(*[, code, message])exception()get_extra_info(name[, default])extra info from connection transport
ping([message])pong([message])receive([timeout])receive_bytes(*[, timeout])receive_json(*[, loads, timeout])receive_str(*[, timeout])send_bytes(data[, compress])send_frame(message, opcode[, compress])Send a frame over the websocket.
send_json(*args, **kwargs)Send data to peer as JSON string.
send_str(*args, **kwargs)Send data to peer as
aiohttp.WSMsgType.TEXTmessage.Attributes
client_notakeoverclose_codeclosedcompressprotocol- async send_str(*args, **kwargs) None¶
Send data to peer as
aiohttp.WSMsgType.TEXTmessage.