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') {