Advertisement
melzneni

Untitled

Aug 13th, 2023 (edited)
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local args={...}
  2. if #args ~=1 then
  3.     print("please provide a server url")
  4. end
  5.  
  6. local address = args[1]
  7.  
  8. local ws = assert(http.websocket(address))
  9. print(ws)
  10. ws.send("Hu")
  11. print(ws.receive())
  12. ws.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement