added websocket function --> sendDataToAllClients