mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fixes #278
This commit is contained in:
parent
7e141724c1
commit
9ddab3fc9f
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