ulrikHesmyr / home_surveillance

Video surveillance system - Computer vision, WebRTC, Websocket
0 stars 0 forks source link

4.1 Create initial websocket connection #9

Open ulrikHesmyr opened 2 months ago

ulrikHesmyr commented 2 months ago

https://python-socketio.readthedocs.io/en/stable/intro.html

ulrikHesmyr commented 2 months ago

på webserver-APP http serveren: allow origin localhost:5000

ulrikHesmyr commented 2 months ago

Prerequisites:

  1. Webserver-APP is running

Procedure:

  1. Camera-APP starts up, and initialize socketio connection. Data for authenticated users is also sent
  2. Client on Webserver-App requests stream by connection to the socket connection for the same room as their camera-APP

Result:

  1. Camera-APP is connected with socketio and is listening on socket events for that given room.
  2. Client on Webserver-APP has joined (and are able to rejoin) the room where the Camera-APP is waiting.