Skip to content
Snippets Groups Projects
Commit f8723ee2 authored by Muhamad Nobel Fauzan's avatar Muhamad Nobel Fauzan
Browse files

add welcome message

parent 33618876
No related merge requests found
...@@ -27,6 +27,10 @@ last_msg = {} ...@@ -27,6 +27,10 @@ last_msg = {}
question = QAPair.query.with_entities(QAPair.question).all() question = QAPair.query.with_entities(QAPair.question).all()
questions = [a.question for a in question] questions = [a.question for a in question]
@socketio.on('connect')
def welcomeMessage():
send("hello there", broadcast = False)
@socketio.on('message') @socketio.on('message')
def handleMessage(msg): def handleMessage(msg):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment