EtixLabs / cameradar-app

Discovers and accesses RTSP CCTV cameras
MIT License
8 stars 1 forks source link

Connect to ws server #6

Open Ullaakut opened 6 years ago

Ullaakut commented 6 years ago

From @gaelduplessix on October 19, 2017 9:31

Setup a basic connection to the ws server using ReasonML

Copied from original issue: EtixLabs/cameradar#128

Ullaakut commented 6 years ago

@gaelduplessix : Just thought about it but it would be very nice to make it possible to deploy a Cameradar server remotely (ssh + docker) and to plug your GUI into it, which means that the GUI ideally should be able to connect to remote WS servers.

It would still be good to have a default behavior of launching the server with the GUI automatically, since this feature is too complex for most users.

gaelollivier commented 6 years ago

What would be the use case for this ?

Ullaakut commented 6 years ago

It would then be possible to deploy a Cameradar server on a remote machine on which we have SSH access and that has access to a private network, and to use the GUI on top of it.

I agree that our current vision of the GUI is that it's a noob-friendly tool that allows people that do not have the IT skills required to use a docker image to be able to operate Cameradar anyway, but since we never know how that might evolve, I just think we should not restrict what our tool can do :-)

Here, in the end, there is no limitation. Even if we hardcoded a WS URL for the first versions, it would be very quick to make it possible to modify that URL and plug into a remote Cameradar Server, so I guess my comment can be ignored, haha!

Ullaakut commented 6 years ago

By the way the backend is done (https://github.com/EtixLabs/cameradar/issues/145) if you want to play with it :)