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

Fixed a bug where arguments weren't passed correctly in a constructor

parent d7bb15e1
......@@ -42,8 +42,8 @@ class Server(object):
logging.INFO only shows server start/stop messages, logging.DEBUG shows
clients (dis)connecting and messages being sent/received.
`protocols` is a list of supported protocols, passed directly to the
websocket constructor.
`protocols` and `extensions` are passed directly to the websocket
constructor.
`secure` is a flag indicating whether the server is SSL enabled. In
this case, `keyfile` and `certfile` must be specified. Any additional
......@@ -61,7 +61,7 @@ class Server(object):
hostname, port = address
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)
if secure:
......
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