Lua 有关websocket的问提

官方代码 WebProxyText.lua 这摘出来的

–Send Text
local function onMenuSendTextClicked()
if nil ~= wsSendText then
if cc.WEBSOCKET_STATE_OPEN == wsSendText:getReadyState() then
sendTextStatus:setString(“Send Text WS is waiting…”)
wsSendText:sendString(“Hello WebSocket中文, I’m a text message.”)
else
local warningStr = “send text websocket instance wasn’t ready…”
print(warningStr)
sendTextStatus:setString(warningStr)
end
end
end

这俩面的getReadyState()方法在哪个类里,跳不进去,连接明明已经打开(确实已经打开强制将判断条件设成true就可以),这个方法取出的值
却不对,求大神解答下