From a18747cfee2b06d7175e4626a61155737432ad12 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 29 Dec 2022 20:20:31 +0000 Subject: shop --- shop.lua | 4 ++-- 1 file 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 -- cgit v1.2.3