BikeCamera : 2 App.js and SocketManager.js - 17chuchu/AutomaticBicycleInterface GitHub Wiki

App.js

App.js contain nothing special, please see the CameraTab.js because it is the same code as this code.

SocketManager.js

SocketManager.js is also nearly identical to other SocketManager.js in other part of the project.

if(!(SocketManager.roomid === res.data))  // If there is a new room number sent to BikeCamera.py, it will re-call to that new room.
{
    SocketManager.roomid = res.data
    console.log(res.data)
    console.log("Attempt calling to room:",SocketManager.roomid)
    while(!this.appref.callToRoom(SocketManager.roomid)){}
}