\App\ConfigModule\ModelsWebSocketManager

WebSocket configuration manager

Summary

Methods
Properties
Constants
__construct()
delete()
getServiceFile()
save()
list()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\ConfigModule\Models\GenericManager  genericManager, \App\ConfigModule\Models\ComponentSchemaManager  schemaManager) : 

Constructor

Parameters

\App\ConfigModule\Models\GenericManager genericManager

Generic configuration manager

\App\ConfigModule\Models\ComponentSchemaManager schemaManager

JSON schema manager

Returns

delete()

delete(  id) : 

Deletes a configuration

Parameters

id

WebSocket interface ID

Throws

\App\ConfigModule\Models\JsonException

Returns

getServiceFile()

getServiceFile(  instanceName) : string|null

Gets WebSocket service file name by instance name

Parameters

instanceName

Instance name

Throws

\App\ConfigModule\Models\JsonException

Returns

string|null —

WebSocket service file name

save()

save(mixed||string|int  array) : 

Saves the configuration

Parameters

mixed||string|int array

Websocket settings

Throws

\App\ConfigModule\Models\JsonException

Returns

list()

list() : mixed||string|int

Gets WebSocket instances

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

WebSocket instances

load()

load(  id) : mixed||string|int

Loads a configuration

Parameters

id

WebSocket interface ID

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for form