anfbckdo

testfile.lua

Jun 27th, 2025 (edited)
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2. local ws = assert(http.websocket("wss://localhost:8080"))
  3. -- drawPixel(xPos, yPos [, colour])
  4.  
  5. local width, height = monitor.getSize()
  6.  
  7. print(width,height)
  8.  
  9. ws.send("hello")
  10. print(ws.receive())
Advertisement
Add Comment
Please, Sign In to add comment