diff options
author | ubq323 <ubq323@ubq323.website> | 2022-12-29 20:22:30 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-12-29 20:22:30 +0000 |
commit | 61a4812a8ea9c287863a034dd14e75469edeb993 (patch) | |
tree | 63897f62acbb8e4ab1af4f601ae338b495ceb90a | |
parent | 247ccfea646301c4a879f5dfe6c03f06cc482175 (diff) |
shop
-rw-r--r-- | shop.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |