commit
c94fe9c74b
@ -24,7 +24,7 @@ require("gwsockets")
|
|||||||
|
|
||||||
*NOTE:* URL's must include the scheme ( Either `ws://` or `wss://` )
|
*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
|
```LUA
|
||||||
GWSockets.createWebSocket( url, verifyCertificate=true )
|
GWSockets.createWebSocket( url, verifyCertificate=true )
|
||||||
@ -108,7 +108,7 @@ require("gwsockets")
|
|||||||
|
|
||||||
```LUA
|
```LUA
|
||||||
require("gwsockets")
|
require("gwsockets")
|
||||||
local socket = GWSockets.createWebSocket("wss://echo.websocket.org/")
|
local socket = GWSockets.createWebSocket("wss://echo.websocket.events/")
|
||||||
|
|
||||||
function socket:onMessage(txt)
|
function socket:onMessage(txt)
|
||||||
print("Received: ", txt)
|
print("Received: ", txt)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
require("gwsockets")
|
require("gwsockets")
|
||||||
local socket = GWSockets.createWebSocket("wss://echo.websocket.org/")
|
local socket = GWSockets.createWebSocket("wss://echo.websocket.events/")
|
||||||
|
|
||||||
function socket:onMessage(txt)
|
function socket:onMessage(txt)
|
||||||
print("Received: ", txt)
|
print("Received: ", txt)
|
||||||
|
@ -502,7 +502,7 @@ int main()
|
|||||||
initialize();
|
initialize();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
GWSocket *socket = createWebSocketFromURL("wss://echo.websocket.org", true);
|
GWSocket *socket = createWebSocketFromURL("wss://echo.websocket.events", true);
|
||||||
socket->open();
|
socket->open();
|
||||||
std::thread t1(runIOThread);
|
std::thread t1(runIOThread);
|
||||||
std::thread t2(sendMessages, socket);
|
std::thread t2(sendMessages, socket);
|
||||||
|
@ -45,7 +45,7 @@ timer.Simple(10, function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local goodURLs = {
|
local goodURLs = {
|
||||||
"wss://echo.websocket.org"
|
"wss://echo.websocket.events"
|
||||||
}
|
}
|
||||||
local connected = {}
|
local connected = {}
|
||||||
for k,v in pairs(goodURLs) do
|
for k,v in pairs(goodURLs) do
|
||||||
|
Loading…
Reference in New Issue
Block a user