server: protect a race condition with using the ws before its ready
server: protect a race condition with using the ws before its ready

it can happen that this loop tries to send messages to
connected clients before those clients connection is established.

this can result in some messages being missed at startup (such
as if the app changes the UI in idle() the first time)

dddomodossola/remi,dddomodossola/remi,dddomodossola/gui