ReIative

Untitled

Apr 23rd, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. while true do
  2. local event, from, data = os.pullEvent()
  3. if event = "wsnet_connectedint" then
  4. print("connected int")
  5. elseif event = "wsnet_failure" then
  6. printError("wsnet failure")
  7. elseif event == "wsnet_connected" then
  8. print("really connected")
  9. elseif event == "wsnet_message" then
  10. print(from..": "..data)
  11. end
  12. end
Add Comment
Please, Sign In to add comment