Hi, does anyone use DMC Web Sockets?
I’m pretty sure they used to work - but don’t seem to anymore (am on 2016.11.10)
this prints “–>onClose”, i.e. it gets a close event (should get an onOpen event)
cat main.lua
local WebSockets = require “dmc_corona.dmc_websockets”
local function webSocketsEvent_handler( event )
print("–>"…event.type)
end
ws = WebSockets{
uri=‘wss://echo.websocket.org’
}
ws:addEventListener( ws.EVENT, webSocketsEvent_handler )