init namespace socket
This commit is contained in:
parent
9380f0485c
commit
8fdd92f1c9
1 changed files with 2 additions and 2 deletions
|
@ -9,12 +9,12 @@ def handle_connection():
|
||||||
|
|
||||||
cool
|
cool
|
||||||
''')
|
''')
|
||||||
emit('message', {'data':'connection'})
|
emit('message', {'data':'connection'}, broadcast=True)
|
||||||
|
|
||||||
@socketio.on('message')
|
@socketio.on('message')
|
||||||
def handle_message(message):
|
def handle_message(message):
|
||||||
print(message)
|
print(message)
|
||||||
emit('message return', {'message':'a message was sent'}, broadcast=True)
|
emit('init namespace', {'namespace':'newroom'})
|
||||||
|
|
||||||
@socketio.on('connect', namespace='/newroom')
|
@socketio.on('connect', namespace='/newroom')
|
||||||
def handle_connection():
|
def handle_connection():
|
||||||
|
|
Loading…
Reference in a new issue