Skip to content

Commit e3874f9

Browse files
committed
Changed test server, echo.websocket.org no longer works
1 parent b79ed76 commit e3874f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Main.bas

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Option Explicit
33

44
' Note: synchronous communication - fails if server does not reply
55
' ===================================================
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
78
' ===================================================
89

910

@@ -23,8 +24,14 @@ For k = 0 To 7
2324
Next
2425

2526
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"
2731
.Connect
32+
' echo.websocket.events responds to connection with a message
33+
Debug.Print .GetMessageUTF8
34+
2835
' send string
2936
.SendMessageUTF8 (stringMessage)
3037
Debug.Print "Server string reply: " & .GetMessageUTF8

0 commit comments

Comments
 (0)