Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local connectionURL = "wss://MCTurtleClient.donovanedwards.repl.co"
- local ws, err = http.websocket(connectionURL)
- if not ws then
- return printError(err)
- end
- ws.send("Hello BITCH!")
- while true do
- local _, url, response, isBinary = os.pullEvent("websocket_message")
- if url == connectionURL and response != nil then
- print(response)
- else then
- print("awaiting...")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement