aboutsummaryrefslogtreecommitdiff
path: root/tests/wss.lua
diff options
context:
space:
mode:
authorame <[email protected]>2025-01-22 02:45:23 -0600
committerame <[email protected]>2025-01-22 02:45:23 -0600
commite7cafd86b947ad654c8081e238faba4df5bd3c33 (patch)
tree0de207c53c902fc86fedb9a6196e4abebbd5277d /tests/wss.lua
parenta86088dc5ded54ccc41bec5d547ff044c641ae19 (diff)
work on websockets
Diffstat (limited to 'tests/wss.lua')
-rw-r--r--tests/wss.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/wss.lua b/tests/wss.lua
new file mode 100644
index 0000000..1344e0b
--- /dev/null
+++ b/tests/wss.lua
@@ -0,0 +1,13 @@
+llby = require("lullaby")
+
+local ws = llby.net.wss("echo.websocket.org", 443)
+
+for i=1,500 do
+ local c = ws:read()
+ print(c)
+ ws:write(c.."a")
+end
+ws:close()
+
+--ws:ping()
+--add onclose?