|
|
@ -77,6 +77,11 @@ def battery_message(data): |
|
|
|
sid = request.sid |
|
|
|
socketio.emit('battery', data, room=ROOM, skip_sid=sid) |
|
|
|
|
|
|
|
@socketio.on('request_webrtc_video') # ok |
|
|
|
def request_webrtc_video(data): |
|
|
|
sid = request.sid |
|
|
|
webrtccamera.connect_client(sid, ROOM) |
|
|
|
|
|
|
|
@socketio.on('text') |
|
|
|
def display_text(text): |
|
|
|
print("display_text()") |
|
|
@ -101,7 +106,7 @@ def connect(): |
|
|
|
sid = request.sid |
|
|
|
print("Received Connect message from %s" % sid) |
|
|
|
join_room(ROOM) |
|
|
|
webrtccamera.connect_client(sid, ROOM) |
|
|
|
#webrtccamera.connect_client(sid, ROOM) |
|
|
|
|
|
|
|
@socketio.on_error_default |
|
|
|
def default_error_handler(e): |
|
|
|