vba-websocket

May 7, 2026 ยท View on GitHub

VBA Websocket Sample (Echo Server Client)

While searching for examples of VBA code that use the Websocket protocol, I found the original Microsoft example code for an echo server client (copy in WinHttpWebSocketSample.bas).

The files for "Main.bas" and "WinHttpCommon.bas" can be imported into VBA to make a client that works with an echo server.

Unfortunately, https://websocket.org/ is no longer working, now using ws://ws.vi-server.org from: github.com/vi/wsmirror

Or, check out: https://piehost.com/websocket/echo-websocket-server

For a much more polished implementation, check out: https://github.com/uesleibros/wasabi