Last active
April 6, 2020 01:57
-
-
Save merylldindin/f20693a76f72d1f235ce1e7e16cfcc48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from application import wss | |
if __name__ == '__main__': | |
from gevent import pywsgi | |
from geventwebsocket.handler import WebSocketHandler | |
# Development server to run locally on port 5000 | |
app = pywsgi.WSGIServer(('', 5000), wss, handler_class=WebSocketHandler) | |
app.serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment