summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-12-29 20:20:31 +0000
committerubq323 <ubq323@ubq323.website>2022-12-29 20:20:31 +0000
commita18747cfee2b06d7175e4626a61155737432ad12 (patch)
tree6f2980afbac59307567ba8693fcb34dbe1ae7b9a
parentec8327c53e65f947e9557954c48e360881ccb6c6 (diff)
shop
-rw-r--r--shop.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/shop.lua b/shop.lua
index 6bef012..d8b21a4 100644
--- a/shop.lua
+++ b/shop.lua
@@ -4,8 +4,8 @@ assert(sres.ok,"not ok")
ws = assert(http.websocket(sres.url))
while true do
- c=ws.receive()
- print(c)
+ c=textutils.unserializeJSON(ws.receive())
+ print(c.type)
end