From b4b760274d8ef6c5cf271b50c923eadc0c305fbd Mon Sep 17 00:00:00 2001 From: Lars Bo Rasmussen Date: Thu, 18 Apr 2024 20:23:59 +0200 Subject: [PATCH] Fix calling wrong method in README for ws (#26631) The documentation is wrong. The WebSocketClient.authorize() is not a method of WebSocketClient. The right method is WebSocketClient.initialize() --- webapp/platform/client/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/platform/client/README.md b/webapp/platform/client/README.md index 1f060bbb5b..6221ed1e5d 100644 --- a/webapp/platform/client/README.md +++ b/webapp/platform/client/README.md @@ -76,7 +76,7 @@ const connectionUrl = 'https://mymattermostserver.example.com/api/v4/websocket'; const authToken = process.env.TOKEN; const wsClient = new WebSocketClient(); -wsClient.authorize(connectionUrl, authToken); +wsClient.initialize(connectionUrl, authToken); wsClient.addMessageListener((msg) => { if (msg.event === 'posted') {