Move error handling to utils

This commit is contained in:
Jeremy Zhang
2018-02-19 07:48:57 +00:00
parent 2d81c923a9
commit 1d085d328b
2 changed files with 6 additions and 5 deletions

View File

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