Disconnect on error

This commit is contained in:
Jeremy Zhang 2018-02-19 07:45:04 +00:00
parent 39dc966138
commit 2d81c923a9

View File

@ -11,6 +11,9 @@ class Gateway(Namespace):
db.session.commit()
db.session.remove()
def on_error(self):
disconnect()
def on_connect(self):
emit('hello')