fixed issue when multiple WebSocketClients are used in a process