Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local event, from, data = os.pullEvent()
- if event = "wsnet_connectedint" then
- print("connected int")
- elseif event = "wsnet_failure" then
- printError("wsnet failure")
- elseif event == "wsnet_connected" then
- print("really connected")
- elseif event == "wsnet_message" then
- print(from..": "..data)
- end
- end
Add Comment
Please, Sign In to add comment