From e43d99b84d7fb12c3e51e916d1e4c657069dea19 Mon Sep 17 00:00:00 2001 From: Avicenna <87450618+AvicennaJr@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:08:12 +0300 Subject: [PATCH] Fix `websocket_url` on the minimal WebSocket client example (#5885) Co-authored-by: Fabio Alessandrelli --- tutorials/networking/websocket.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/networking/websocket.rst b/tutorials/networking/websocket.rst index 26a9e87f6..78af1122d 100644 --- a/tutorials/networking/websocket.rst +++ b/tutorials/networking/websocket.rst @@ -37,7 +37,7 @@ This example will show you how to create a WebSocket connection to a remote serv extends Node # The URL we will connect to - export var websocket_url = "ws://echo.websocket.org" + export var websocket_url = "wss://libwebsockets.org" # Our WebSocketClient instance var _client = WebSocketClient.new() @@ -53,7 +53,7 @@ This example will show you how to create a WebSocket connection to a remote serv _client.connect("data_received", self, "_on_data") # Initiate connection to the given URL. - var err = _client.connect_to_url(websocket_url) + var err = _client.connect_to_url(websocket_url, ["lws-mirror-protocol"]) if err != OK: print("Unable to connect") set_process(false)