mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Merge pull request #279 from scottwedge/master
Fix spelling of receive in websocket.py comments
This commit is contained in:
commit
264c53b1c5
1 changed files with 4 additions and 4 deletions
|
@ -373,7 +373,7 @@ class WebSocket(object):
|
|||
The WebSocket protocol 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.
|
||||
|
||||
>>> import websocket
|
||||
|
@ -635,7 +635,7 @@ class WebSocket(object):
|
|||
|
||||
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.
|
||||
"""
|
||||
|
@ -665,7 +665,7 @@ class WebSocket(object):
|
|||
|
||||
def recv_frame(self):
|
||||
"""
|
||||
recieve data as frame from server.
|
||||
receive data as frame from server.
|
||||
|
||||
return value: ABNF frame object.
|
||||
"""
|
||||
|
@ -821,7 +821,7 @@ class WebSocketApp(object):
|
|||
header: custom header for websocket handshake.
|
||||
on_open: callable object which is called at opening websocket.
|
||||
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.
|
||||
The 1st arugment is this class object.
|
||||
The passing 2nd arugment is utf-8 string which we get from the server.
|
||||
|
|
Loading…
Reference in a new issue