aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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()