add docstring.
This commit is contained in:
4
setup.py
4
setup.py
@@ -1,6 +1,6 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
VERSION = "0.8.0"
|
VERSION = "0.9.0"
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@@ -12,7 +12,7 @@ setup(
|
|||||||
author_email="liris.pp@gmail.com",
|
author_email="liris.pp@gmail.com",
|
||||||
license="LGPL",
|
license="LGPL",
|
||||||
url="https://github.com/liris/websocket-client",
|
url="https://github.com/liris/websocket-client",
|
||||||
classifiers = [
|
classifiers=[
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
|
@@ -700,7 +700,9 @@ class WebSocketApp(object):
|
|||||||
|
|
||||||
def send(self, data, opcode = ABNF.OPCODE_TEXT):
|
def send(self, data, opcode = ABNF.OPCODE_TEXT):
|
||||||
"""
|
"""
|
||||||
send message. data must be utf-8 string or unicode.
|
send message.
|
||||||
|
data: message to send. If you set opcode to OPCODE_TEXT, data must be utf-8 string or unicode.
|
||||||
|
opcode: operation code of data. default is OPCODE_TEXT.
|
||||||
"""
|
"""
|
||||||
if self.sock.send(data, opcode) == 0:
|
if self.sock.send(data, opcode) == 0:
|
||||||
raise WebSocketConnectionClosedException()
|
raise WebSocketConnectionClosedException()
|
||||||
|
Reference in New Issue
Block a user