WebSocket Events Documentation
TopPHP
Components
Bot
Bots
User
Users
TopPHP
Parts
Cache
Collection
Http
Parts
Webhooks
EventLoop
Webhook
TopPHP\Parts\Webhooks\
Webhook
P
$responses
: object
P
$errors
: object
P
$auth
: string|null
P
$parent
: TopPHP
M
__construct()
:
M
addEventListener()
: void
M
addErrorHandler()
: void
M
client()
: EventLoop|NULL
M
make()
: EventLoop
$responses
protected
object
$responses;
$errors
protected
object
$errors;
$auth
public
string|null
$auth;
$parent
protected
TopPHP
$parent;
__construct()
__construct(
TopPHP
$topphp ,
string
$token=NULL )
Parameters
$topphp
TopPHP
:
$token=NULL
string
:
addEventListener()
public
addEventListener(
string
$event ,
callable
$function ) :
void
Parameters
$event
string
:
$function
callable
:
addErrorHandler()
public
addErrorHandler(
string
$connectionError ,
callable
$function ) :
void
Parameters
$connectionError
string
:
$function
callable
:
client()
public
client(
) :
EventLoop
-
NULL
make()
public
make(
) :
EventLoop
Powered by
OxedDocs