diff options
-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 |