Worker: first draft of the websocket encapsulation for the Server object