From eddc288d9eb9ec9056d1e8f6f65dd9e8034b2dcc Mon Sep 17 00:00:00 2001 From: orel Date: Fri, 5 Feb 2021 17:05:04 +0100 Subject: [PATCH] Fix typo as there is no instanciated client in the sample... --- docs/jsclientlib/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/jsclientlib/socket.rst b/docs/jsclientlib/socket.rst index 7bffa2f54..70b9bc5dc 100644 --- a/docs/jsclientlib/socket.rst +++ b/docs/jsclientlib/socket.rst @@ -122,7 +122,7 @@ Sample to setup an authed socket OctoPrint.socket.connect(); OctoPrint.browser.login("myusername", "mypassword", true) .done(function(response) { - client.socket.sendAuth("myusername", response.session); + OctoPrint.socket.sendAuth("myusername", response.session); }); .. _sec-jsclient-socket-throttling: