Vorlent / cozycast

movie night over the internet
Other
5 stars 3 forks source link

Automatic reconnect after worker restarts #58

Closed Vorlent closed 4 years ago

Vorlent commented 4 years ago

Manually restarting the worker does not reestablish a connection and since the connection to the cozycast-server and the cozycast-client is not broken the client will not reconnect either.

Vorlent commented 4 years ago

The problem is that the worker starts before xfce-session starts. I will have to delay the ffmpeg capture to happen after xfce-session.

Vorlent commented 4 years ago

The bug component of this issue has been resolved. The worker waits for pulse audio to start before starting the ffmpeg capture. The client now has to be notified of the new worker.

Vorlent commented 4 years ago

I am closing the websocket connection of every user with CloseStatus.SERVICE_RESTARTED which causes the client to immediately reconnect.