Skip to content

Commit

Permalink
Change example servers
Browse files Browse the repository at this point in the history
The example.com server in the README no longer works (#29). Same goes for the echo.websocket.org servers, visiting or websocket connecting to said domain now just shows that the service no longer available. All references to these have been changed to echo.websocket.events, which is a working alternative for both plain and secure connections.
  • Loading branch information
viral32111 committed Apr 17, 2022
1 parent f428bd1 commit b731b8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require("gwsockets")

*NOTE:* URL's must include the scheme ( Either `ws://` or `wss://` )

`Example: "wss://example.com:9999/api/socketserver"`
`Example: "wss://echo.websocket.events/api/socketserver"`

```LUA
GWSockets.createWebSocket( url, verifyCertificate=true )
Expand Down Expand Up @@ -108,7 +108,7 @@ require("gwsockets")

```LUA
require("gwsockets")
local socket = GWSockets.createWebSocket("wss://echo.websocket.org/")
local socket = GWSockets.createWebSocket("wss://echo.websocket.events/")

function socket:onMessage(txt)
print("Received: ", txt)
Expand Down
2 changes: 1 addition & 1 deletion examples/echo.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("gwsockets")
local socket = GWSockets.createWebSocket("wss://echo.websocket.org/")
local socket = GWSockets.createWebSocket("wss://echo.websocket.events/")

function socket:onMessage(txt)
print("Received: ", txt)
Expand Down
2 changes: 1 addition & 1 deletion src/GLua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ int main()
initialize();
try
{
GWSocket *socket = createWebSocketFromURL("wss://echo.websocket.org", true);
GWSocket *socket = createWebSocketFromURL("wss://echo.websocket.events", true);
socket->open();
std::thread t1(runIOThread);
std::thread t2(sendMessages, socket);
Expand Down
2 changes: 1 addition & 1 deletion tests/ssltest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ timer.Simple(10, function()
end

local goodURLs = {
"wss://echo.websocket.org"
"wss://echo.websocket.events"
}
local connected = {}
for k,v in pairs(goodURLs) do
Expand Down

0 comments on commit b731b8e

Please sign in to comment.