I “fixed” the problem with this simple and somewhat dirty line of code:
ws.setReceiveTimeout(Poco::Timespan(10, 0, 0, 0, 0));
Basically, I set the waiting time for admission to 10 days. Since my websocket will have a life expectancy of several hours, 10 days is infinity for me.
Hope this helps.
yiown source share