Skip to content

Commit

Permalink
Merge pull request #19 from aexeagmbh/patch-port
Browse files Browse the repository at this point in the history
fix hardcoded port in asyncio
  • Loading branch information
andrewgodwin committed Sep 18, 2015
2 parents db602d3 + 07bdaf0 commit ab2f1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/interfaces/websocket_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run(self):
self.factory = get_factory(WebSocketServerFactory)("ws://0.0.0.0:%i" % self.port, debug=False)
self.factory.protocol = get_protocol(WebSocketServerProtocol)
self.loop = asyncio.get_event_loop()
coro = self.loop.create_server(self.factory, '0.0.0.0', 9000)
coro = self.loop.create_server(self.factory, '0.0.0.0', self.port)
server = self.loop.run_until_complete(coro)
self.loop.run_in_executor(None, self.backend_reader)
self.loop.call_later(1, self.keepalive_sender)
Expand Down

0 comments on commit ab2f1df

Please sign in to comment.