summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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