from gevent.pywsgi import WSGIServer
from geventwebsocket.handler import WebSocketHandler

from app import app

if __name__ == '__main__':
    http_server = WSGIServer(('',5000), app, handler_class=WebSocketHandler)
    http_server.serve_forever()