|
@ -111,6 +111,11 @@ def connect(): |
|
|
if sid != webrtccamera.sid: |
|
|
if sid != webrtccamera.sid: |
|
|
serial.add_callback('B', display_battery) |
|
|
serial.add_callback('B', display_battery) |
|
|
|
|
|
|
|
|
|
|
|
@socketio.on('ping', namespace='/webrtc') |
|
|
|
|
|
def ping(): |
|
|
|
|
|
sid = request.sid |
|
|
|
|
|
print("Received ping from %s" % sid) |
|
|
|
|
|
|
|
|
@socketio.on_error_default |
|
|
@socketio.on_error_default |
|
|
def default_error_handler(e): |
|
|
def default_error_handler(e): |
|
|
print(request.event["message"]) # "my error event" |
|
|
print(request.event["message"]) # "my error event" |
|
|