in reply to Sending periodic messages on a Websocket server

Your workaround seems sensible if you choose to stay with Net::WebSocket::Server, as that module does not provide easy integration with other event loops.

Other frameworks like Mojolicious or Plack::App::WebSocket provide ways to also have other events like timer events getting fired. But I haven't done any websocket stuff, so I don't know how well those modules actually support your use case.

  • Comment on Re: Sending periodic messages on a Websocket server