メソッド: ccchart.getWsById(id)
※引数のid名に紐付いた最新のWebSocketオブジェクトが返ります。
Chrome Win なら[Ctrl]+[Shift]+J、Macなら[command]+[option]+Jなどでコンソールを開き、 たとえば、ccchart.getWsById("hoge1") と打ち込んでみてください。
console.log(JSON.stringify(ccchart.getWsById('hoge1')))
の結果:
{
"binaryType": "blob",
"onmessage": null,
"protocol": "ws.ccchart.com",
"extensions": "",
"onclose": null,
"onerror": null,
"onopen": null,
"bufferedAmount": 0,
"readyState": 1,
"url": "ws://202.215.119.36:8016/",
"URL": "ws://202.215.119.36:8016/",
"uid": "-ccchart-ws-ed982dfa-b125-47a8-acc2-93a0286e7ad6",
"op": {
"autoReConnect": true,
"maxReConnect": 8,
"useHb": true,
"hbStr": "Heartbeat",
"hbInterval": 60000,
"protocol": "ws.ccchart.com",
"wscaseName": "oneColAtATime",
"id": "hoge1",
"uid": "-ccchart-ws-ed982dfa-b125-47a8-acc2-93a0286e7ad6",
"url": "ws://202.215.119.36:8016",
"hbTimer": 1,
"bncStart": 1425902753835
},
"wsIncomingCounter": 0,
"wsThinOutInterval": 0
}