PHP 클래스 Askedio\LaravelRatchet\RatchetServer

상속: implements Ratchet\MessageComponentInterface
파일 보기 프로젝트 열기: askedio/laravel-ratchet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$clients [type] Clients.
$conn Ratchet\ConnectionInterface Current connection.
$connections [type] Total connections.
$console [type] Console.
$throttled [type] Throttled.

공개 메소드들

메소드 설명
__construct ( [type] $console ) Set clients and console.
abort ( Ratchet\ConnectionInterface $conn ) : [type] Close the current connection.
onClose ( Ratchet\ConnectionInterface $conn ) : [type] Perform action on close.
onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type] Perform action on error.
onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type] Perform action on message.
onOpen ( Ratchet\ConnectionInterface $conn ) : [type] Perform action on open.
send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type] Send a message to the current connection.
sendAll ( [type] $message ) : [type] Send a message to all connections.

비공개 메소드들

메소드 설명
attach ( )
isThrottled ( [type] $conn, [type] $setting ) : boolean Check if the called function is throttled.
limit ( ) : [type] Limit connections.
throttle ( ) : [type] Throttle connections.

메소드 상세

__construct() 공개 메소드

Set clients and console.
public __construct ( [type] $console )
$console [type]

abort() 공개 메소드

Close the current connection.
public abort ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface
리턴 [type]

onClose() 공개 메소드

Perform action on close.
public onClose ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface [description]
리턴 [type]

onError() 공개 메소드

Perform action on error.
public onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type]
$conn Ratchet\ConnectionInterface [description]
$exception Exception [description]
리턴 [type]

onMessage() 공개 메소드

Perform action on message.
public onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type]
$conn Ratchet\ConnectionInterface [description]
$input [type]
리턴 [type]

onOpen() 공개 메소드

Perform action on open.
public onOpen ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface [description]
리턴 [type]

send() 공개 메소드

Send a message to the current connection.
public send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type]
$conn Ratchet\ConnectionInterface
$message [type]
리턴 [type]

sendAll() 공개 메소드

Send a message to all connections.
public sendAll ( [type] $message ) : [type]
$message [type]
리턴 [type]

프로퍼티 상세

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

Clients.
protected [type] $clients
리턴 [type]

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

Current connection.
protected ConnectionInterface,Ratchet $conn
리턴 Ratchet\ConnectionInterface

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

Total connections.
protected [type] $connections
리턴 [type]

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

Console.
protected [type] $console
리턴 [type]

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

Throttled.
protected [type] $throttled
리턴 [type]