Merge pull request #279 from scottwedge/master

Fix spelling of receive in websocket.py comments
This commit is contained in:
Odd Stråbø 2020-04-19 04:50:40 +02:00 committed by GitHub
commit 264c53b1c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -373,7 +373,7 @@ class WebSocket(object):
The WebSocket protocol draft-hixie-thewebsocketprotocol-76 The WebSocket protocol draft-hixie-thewebsocketprotocol-76
http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76 http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76
We can connect to the websocket server and send/recieve data. We can connect to the websocket server and send/receive data.
The following example is a echo client. The following example is a echo client.
>>> import websocket >>> import websocket
@ -635,7 +635,7 @@ class WebSocket(object):
def recv_data(self): def recv_data(self):
""" """
Recieve data with operation code. Receive data with operation code.
return value: tuple of operation code and string(byte array) value. return value: tuple of operation code and string(byte array) value.
""" """
@ -665,7 +665,7 @@ class WebSocket(object):
def recv_frame(self): def recv_frame(self):
""" """
recieve data as frame from server. receive data as frame from server.
return value: ABNF frame object. return value: ABNF frame object.
""" """
@ -821,7 +821,7 @@ class WebSocketApp(object):
header: custom header for websocket handshake. header: custom header for websocket handshake.
on_open: callable object which is called at opening websocket. on_open: callable object which is called at opening websocket.
this function has one argument. The arugment is this class object. this function has one argument. The arugment is this class object.
on_message: callbale object which is called when recieved data. on_message: callbale object which is called when received data.
on_message has 2 arguments. on_message has 2 arguments.
The 1st arugment is this class object. The 1st arugment is this class object.
The passing 2nd arugment is utf-8 string which we get from the server. The passing 2nd arugment is utf-8 string which we get from the server.