diff options
author | ubq323 <ubq323@ubq323.website> | 2022-12-29 20:28:19 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-12-29 20:28:19 +0000 |
commit | ee7f672ce192be126c02248415aae320dd3f0532 (patch) | |
tree | e2476e189cef176c7e2284219b041c5522ea303c | |
parent | 15d260214ffd1deb558cf8dd50dc1d0edc8cc6b7 (diff) |
shop
-rw-r--r-- | shop.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,8 +14,8 @@ sendws { type="get_subscription_level" } while true do msgtxt = assert(ws.receive(),"ws error") msg = textutils.unserializeJSON(msgtxt) - print(c.type) - if c.type ~= "keepalive" then print(msgtxt) end + print(msg.type) + if msg.type ~= "keepalive" then print(msgtxt) end end |