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
c140e422
Commit
c140e422
authored
Aug 22, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where arguments weren't passed correctly in a constructor
parent
d7bb15e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
server.py
server.py
+3
-3
No files found.
server.py
View file @
c140e422
...
@@ -42,8 +42,8 @@ class Server(object):
...
@@ -42,8 +42,8 @@ class Server(object):
logging.INFO only shows server start/stop messages, logging.DEBUG shows
logging.INFO only shows server start/stop messages, logging.DEBUG shows
clients (dis)connecting and messages being sent/received.
clients (dis)connecting and messages being sent/received.
`protocols`
is a list of supported protocols, passed directly to the
`protocols`
and `extensions` are passed directly to the websocket
websocket
constructor.
constructor.
`secure` is a flag indicating whether the server is SSL enabled. In
`secure` is a flag indicating whether the server is SSL enabled. In
this case, `keyfile` and `certfile` must be specified. Any additional
this case, `keyfile` and `certfile` must be specified. Any additional
...
@@ -61,7 +61,7 @@ class Server(object):
...
@@ -61,7 +61,7 @@ class Server(object):
hostname
,
port
=
address
hostname
,
port
=
address
logging
.
info
(
'Starting server at %s://%s:%d'
,
scheme
,
hostname
,
port
)
logging
.
info
(
'Starting server at %s://%s:%d'
,
scheme
,
hostname
,
port
)
self
.
sock
=
websocket
()
self
.
sock
=
websocket
(
protocols
=
protocols
,
extensions
=
extensions
)
self
.
sock
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
self
.
sock
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
if
secure
:
if
secure
:
...
...
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