PHP 클래스 PHPDaemon\Servers\WebSocket\Protocols\V13

또한 보기: http://datatracker.ietf.org/doc/rfc6455/?include_text=1
상속: extends PHPDaemon\Servers\WebSocket\Connection
파일 보기 프로젝트 열기: kakserpom/phpdaemon

보호된 프로퍼티들

프로퍼티 타입 설명
$framebuf
$opcodes
$outgoingCompression

공개 메소드들

메소드 설명
mask ( $data, string | false $mask ) : mixed Apply mask
onRead ( ) : void Called when new data received
sendFrame ( string $data, string $type = null, callable $cb = null ) : boolean Sends a frame.
sendHandshakeReply ( $extraHeaders = '' ) : boolean Sends a handshake message reply

메소드 상세

mask() 공개 메소드

Apply mask
public mask ( $data, string | false $mask ) : mixed
$data
$mask string | false
리턴 mixed

onRead() 공개 메소드

Called when new data received
또한 보기: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10#page-16
public onRead ( ) : void
리턴 void

sendFrame() 공개 메소드

Sends a frame.
public sendFrame ( string $data, string $type = null, callable $cb = null ) : boolean
$data string Frame's data.
$type string Frame's type. ("STRING" OR "BINARY")
$cb callable Optional. Callback called when the frame is received by client.
리턴 boolean Success.

sendHandshakeReply() 공개 메소드

Sends a handshake message reply
public sendHandshakeReply ( $extraHeaders = '' ) : boolean
리턴 boolean OK?

프로퍼티 상세

$framebuf 보호되어 있는 프로퍼티

protected $framebuf

$opcodes 보호되어 있는 정적으로 프로퍼티

protected static $opcodes

$outgoingCompression 보호되어 있는 프로퍼티

protected $outgoingCompression