From 08cddd087a95bc54c0804d3f81a792cbfc40640a Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 22 Jan 2025 02:45:23 -0600 Subject: work on websockets --- tests/wss.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/wss.lua (limited to 'tests/wss.lua') 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? -- cgit v1.2.3