From e47fc83ebf25bce797541ea22ed0cecabfbe824a Mon Sep 17 00:00:00 2001 From: Slavomir Hustaty Date: Tue, 14 Apr 2020 15:52:42 +0200 Subject: [PATCH] Update README.md Code sample fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd3ddcd..572b798 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ This requires the use of a broker that supports WebSockets natively, or the use ```JS // Create a client instance -var client = new Paho.MQTT.Client(location.hostname, Number(location.port), "clientId"); +var client = new Paho.Client(location.hostname, Number(location.port), "clientId"); // set callback handlers client.onConnectionLost = onConnectionLost;