AirLay backend

EventsManager
in package
implements MessageComponentInterface

Error codes: 1 - Token not set 2 - Invalid token 3 - User not exists 4 - Not access for dataset 5 - Invalid request

Interfaces, Classes, Traits and Enums

MessageComponentInterface

Table of Contents

$dataSetsCollection  : DataSetsCollection
$dataSetService  : DataSetService
$downloadedFilesCollection  : DownloadedFilesCollection
$listeners  : array<string|int, mixed>
$tokenService  : TokenService
$uploadFileLogsCollection  : UploadFileLogsCollection
$usersCollection  : UsersCollection
__construct()  : mixed
onClose()  : mixed
onError()  : mixed
onEvent()  : mixed
onMessage()  : mixed
onOpen()  : mixed
attach()  : void
authorization()  : UserEntity
detach()  : void

Properties

Methods

__construct()

public __construct(TokenService $tokenService, UsersCollection $usersCollection, DataSetService $dataSetService, UploadFileLogsCollection $uploadFileLogsCollection, DownloadedFilesCollection $downloadedFilesCollection, DataSetsCollection $dataSetsCollection) : mixed
Parameters
$tokenService : TokenService
$usersCollection : UsersCollection
$dataSetService : DataSetService
$uploadFileLogsCollection : UploadFileLogsCollection
$downloadedFilesCollection : DownloadedFilesCollection
$dataSetsCollection : DataSetsCollection
Return values
mixed

onClose()

public onClose(ConnectionInterface $conn) : mixed
Parameters
$conn : ConnectionInterface
Return values
mixed

onError()

public onError(ConnectionInterface $conn, Exception $e) : mixed
Parameters
$conn : ConnectionInterface
$e : Exception
Return values
mixed

onMessage()

public onMessage(ConnectionInterface $from, mixed $msg) : mixed
Parameters
$from : ConnectionInterface
$msg : mixed
Return values
mixed

onOpen()

public onOpen(ConnectionInterface $conn) : mixed
Parameters
$conn : ConnectionInterface
Return values
mixed

attach()

private attach(UserEntity $user, array<string|int, mixed> $event, ConnectionInterface $conn) : void
Parameters
$user : UserEntity
$event : array<string|int, mixed>
$conn : ConnectionInterface
Tags
throws
AirlayException
Return values
void

authorization()

private authorization(string $authToken) : UserEntity
Parameters
$authToken : string
Tags
throws
RuntimeException
Return values
UserEntity

detach()

private detach(ConnectionInterface $conn[, array<string|int, mixed>|null $event = null ]) : void
Parameters
$conn : ConnectionInterface
$event : array<string|int, mixed>|null = null
Return values
void

Search results