File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ Option Explicit
3
3
4
4
' Note: synchronous communication - fails if server does not reply
5
5
' ===================================================
6
- ' = Echo server thanks to: https://websocket.org/ =
6
+ ' = Echo server thanks to:
7
+ ' = https://www.lob.com/blog/websocket-org-is-down-here-is-an-alternative
7
8
' ===================================================
8
9
9
10
@@ -23,8 +24,14 @@ For k = 0 To 7
23
24
Next
24
25
25
26
With ws
26
- .Server = "echo.websocket.org"
27
+ ' .Server = "echo.websocket.org" ' no longer active - Sept, 2021
28
+ ' substitute, see: https://www.lob.com/blog/websocket-org-is-down-here-is-an-alternative
29
+ ' after connection, server sends message to client, then echoes
30
+ .Server = "echo.websocket.events"
27
31
.Connect
32
+ ' echo.websocket.events responds to connection with a message
33
+ Debug.Print .GetMessageUTF8
34
+
28
35
' send string
29
36
.SendMessageUTF8 (stringMessage)
30
37
Debug.Print "Server string reply: " & .GetMessageUTF8
You can’t perform that action at this time.
0 commit comments