Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.find("monitor")
- local ws = assert(http.websocket("wss://localhost:8080"))
- -- drawPixel(xPos, yPos [, colour])
- local width, height = monitor.getSize()
- print(width,height)
- ws.send("hello")
- print(ws.receive())
Advertisement
Add Comment
Please, Sign In to add comment