summaryrefslogtreecommitdiff
path: root/shop.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-12-29 20:22:30 +0000
committerubq323 <ubq323@ubq323.website>2022-12-29 20:22:30 +0000
commit61a4812a8ea9c287863a034dd14e75469edeb993 (patch)
tree63897f62acbb8e4ab1af4f601ae338b495ceb90a /shop.lua
parent247ccfea646301c4a879f5dfe6c03f06cc482175 (diff)
shop
Diffstat (limited to 'shop.lua')
-rw-r--r--shop.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/shop.lua b/shop.lua
index 2d2973e..ad6e425 100644
--- a/shop.lua
+++ b/shop.lua
@@ -4,8 +4,10 @@ assert(sres.ok,"not ok")
ws = assert(http.websocket(sres.url))
while true do
- c=textutils.unserializeJSON(assert((ws.receive())))
+ msgtxt = assert(ws.receive(),"ws error")
+ msg = textutils.unserializeJSON(msgtxt)
print(c.type)
+ if c.type ~= "keepalive" then print(msgtxt) end
end