Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy
Commits
c2fd30a6
Commit
c2fd30a6
authored
Aug 30, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added listen backlog size to docs
parent
b7c8c29f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+2
-2
websocket.py
websocket.py
+1
-1
No files found.
README.md
View file @
c2fd30a6
...
...
@@ -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()
...
...
websocket.py
View file @
c2fd30a6
...
...
@@ -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!'))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment