Commit c2fd30a6 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Added listen backlog size to docs

parent b7c8c29f
......@@ -38,7 +38,7 @@ Basic usage
sock = twspy.websocket()
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(('', 8000))
sock.listen()
sock.listen(5)
client = sock.accept()
client.send(twspy.Frame(twspy.OPCODE_TEXT, 'Hello, Client!'))
......@@ -75,7 +75,7 @@ Basic usage
server = twspy.websocket()
server.bind(('', 8000))
server.listen()
server.listen(5)
while True:
client, addr = server.accept()
......
......@@ -18,7 +18,7 @@ class websocket(object):
>>> sock = twspy.websocket()
>>> sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
>>> sock.bind(('', 8000))
>>> sock.listen()
>>> sock.listen(5)
>>> client = sock.accept()
>>> client.send(twspy.Frame(twspy.OPCODE_TEXT, 'Hello, Client!'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment