PHP 클래스 Slack\RealTimeClient

상속: extends ApiClient, use trait Evenement\EventEmitterTrait
파일 보기 프로젝트 열기: coderstephen/slack-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$bots A map of bots.
$channels A map of channels.
$connected Indicates if the client is connected.
$dms A map of direct message channels.
$groups A map of groups.
$lastMessageId The ID of the last payload sent to Slack.
$pendingMessages An array of pending messages waiting for successful confirmation from Slack.
$team The team logged in to.
$users A map of users.
$websocket A websocket connection to the Slack API.

공개 메소드들

메소드 설명
connect ( ) : React\Promise\PromiseInterface Connects to the real-time messaging server.
disconnect ( ) Disconnects the client.
getBotById ( string $id ) : React\Promise\PromiseInterface Gets a bot by its ID.
getBots ( ) : React\Promise\PromiseInterface Gets all bots in the Slack team.
getChannelById ( $id ) {@inheritDoc}
getChannels ( ) {@inheritDoc}
getDMById ( $id ) {@inheritDoc}
getDMs ( ) {@inheritDoc}
getGroupById ( $id ) {@inheritDoc}
getGroups ( ) {@inheritDoc}
getTeam ( ) {@inheritDoc}
getUserById ( $id ) {@inheritDoc}
getUsers ( ) {@inheritDoc}
isConnected ( ) : boolean Returns whether the client is connected.
postMessage ( Message $message ) {@inheritDoc}

비공개 메소드들

메소드 설명
onMessage ( Devristo\Phpws\Messaging\WebSocketMessageInterface $message ) Handles incoming websocket messages, parses them, and emits them as remote events.

메소드 상세

connect() 공개 메소드

Connects to the real-time messaging server.
public connect ( ) : React\Promise\PromiseInterface
리턴 React\Promise\PromiseInterface

disconnect() 공개 메소드

Disconnects the client.
public disconnect ( )

getBotById() 공개 메소드

Gets a bot by its ID.
public getBotById ( string $id ) : React\Promise\PromiseInterface
$id string A bot ID.
리턴 React\Promise\PromiseInterface A promise for a bot object.

getBots() 공개 메소드

Gets all bots in the Slack team.
public getBots ( ) : React\Promise\PromiseInterface
리턴 React\Promise\PromiseInterface A promise for an array of bots.

getChannelById() 공개 메소드

{@inheritDoc}
public getChannelById ( $id )

getChannels() 공개 메소드

{@inheritDoc}
public getChannels ( )

getDMById() 공개 메소드

{@inheritDoc}
public getDMById ( $id )

getDMs() 공개 메소드

{@inheritDoc}
public getDMs ( )

getGroupById() 공개 메소드

{@inheritDoc}
public getGroupById ( $id )

getGroups() 공개 메소드

{@inheritDoc}
public getGroups ( )

getTeam() 공개 메소드

{@inheritDoc}
public getTeam ( )

getUserById() 공개 메소드

{@inheritDoc}
public getUserById ( $id )

getUsers() 공개 메소드

{@inheritDoc}
public getUsers ( )

isConnected() 공개 메소드

Returns whether the client is connected.
public isConnected ( ) : boolean
리턴 boolean

postMessage() 공개 메소드

{@inheritDoc}
public postMessage ( Message $message )
$message Slack\Message\Message

프로퍼티 상세

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

A map of bots.
protected $bots

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

A map of channels.
protected $channels

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

Indicates if the client is connected.
protected $connected

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

A map of direct message channels.
protected $dms

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

A map of groups.
protected $groups

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

The ID of the last payload sent to Slack.
protected $lastMessageId

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

An array of pending messages waiting for successful confirmation from Slack.
protected $pendingMessages

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

The team logged in to.
protected $team

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

A map of users.
protected $users

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

A websocket connection to the Slack API.
protected $websocket