set websocket clientId from server; clear websocket clients on shutodwn