aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorame <[email protected]>2025-02-11 02:36:44 -0600
committerame <[email protected]>2025-02-11 02:36:44 -0600
commit590135ce9a1cb629c9cc31c9c528feac3885f7fc (patch)
treee3dbd795d2a6a017fc814a1bb5497b07047aff9b /tests
parente7cafd86b947ad654c8081e238faba4df5bd3c33 (diff)
fixes and asan slopgit add .
Diffstat (limited to 'tests')
-rw-r--r--tests/wss.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/wss.lua b/tests/wss.lua
index 1344e0b..d6383a1 100644
--- a/tests/wss.lua
+++ b/tests/wss.lua
@@ -1,12 +1,14 @@
llby = require("lullaby")
-local ws = llby.net.wss("echo.websocket.org", 443)
+local ws = llby.net.wss("echo.websocket.org:443")
-for i=1,500 do
- local c = ws:read()
+for i=1,10 do
+ local c = ws:read().content
print(c)
ws:write(c.."a")
end
+
+ws:close()
ws:close()
--ws:ping()