웹소켓서버 » Api

isconnected

Description

원격지 IP와 포트의 세션 연결 여부를 리턴한다.

Parameters

Parameters Type Description
strRemoteIP STRING 원격지 IP
nRemotePort short 원격지 포트

Return Value

Type Description
BOOL 세션 연결 여부

Remark

전용 브라우저 환경에서만 동작합니다.

Example

function btnTest_on_mouseup(objInst) { if (wssvr.isconnected("127.0.0.1", 12345) == true) { screen.alert("연결됨"); } else { screen.alert("연결안됨"); } }

Viewer Ver.

9.1.1.1

Update Date

20231102