PHP 클래스 WebsocketClient, php-websocket

Supporting handshake from drafts: draft-hixie-thewebsocketprotocol-76 draft-ietf-hybi-thewebsocketprotocol-00
저자: Simon Samtleben ([email protected])
파일 보기 프로젝트 열기: nekudo/php-websocket 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
__destruct ( )
checkConnection ( )
connect ( $host, $port, $path, $origin = false )
disconnect ( )
reconnect ( )
sendData ( $data, $type = 'text', $masked = true )

비공개 메소드들

메소드 설명
_generateRandomString ( $length = 10, $addSpaces = true, $addNumbers = true )
_hybi10Decode ( $data )
_hybi10Encode ( $payload, $type = 'text', $masked = true )

메소드 상세

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

public __destruct ( )

checkConnection() 공개 메소드

public checkConnection ( )

connect() 공개 메소드

public connect ( $host, $port, $path, $origin = false )

disconnect() 공개 메소드

public disconnect ( )

reconnect() 공개 메소드

public reconnect ( )

sendData() 공개 메소드

public sendData ( $data, $type = 'text', $masked = true )