import SocketIOServiceProvider from 'devapt-core-server/js/services/uused_base/unused_socketio_service_provider.js'
SocketIOServiceProvider
Extends:
Service provider base class with SocketIO provider features.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_provider_name: string, arg_service_instance: Service, arg_context: string): nothing Create a service provider. |
Member Summary
Public Members | ||
public |
|
|
public |
runtime: * |
|
public |
subscribers_sockets: *[] |
Method Summary
Public Methods | ||
public |
activate_on_socketio_server(arg_socketio: object): nothing Activate service on one socketio server for browser request with messages. |
|
public |
activate_on_socketio_servers(): nothing Activate service on socketio server for browser request with messages. |
|
public |
get_io_operations(arg_socket: object): object Get service provider operations. |
|
public |
on_method(arg_method: string, arg_socket: object, arg_data: object, arg_credentials: Credentials): nothing Get operation handler on socket. |
|
public |
post_provided_values_to_subscribers(arg_msg: object): nothing Post a message on the bus. |
|
public abstract |
Process request and returns datas. |
|
public |
Add a subscriber socket. |
|
public |
unsubscribe(arg_socket: object, arg_data: object): nothing Remove a subscriber socket. |
Public Constructors
Public Methods
public activate_on_socketio_server(arg_socketio: object): nothing source
Activate service on one socketio server for browser request with messages.
Params:
Name | Type | Attribute | Description |
arg_socketio | object | socketio server. |
Return:
nothing |
public activate_on_socketio_servers(): nothing source
Activate service on socketio server for browser request with messages.
Return:
nothing |
public get_io_operations(arg_socket: object): object source
Get service provider operations.
Params:
Name | Type | Attribute | Description |
arg_socket | object | client socket. |
public on_method(arg_method: string, arg_socket: object, arg_data: object, arg_credentials: Credentials): nothing source
Get operation handler on socket.
Return:
nothing |
public post_provided_values_to_subscribers(arg_msg: object): nothing source
Post a message on the bus.
Params:
Name | Type | Attribute | Description |
arg_msg | object | message payload. |
Return:
nothing |
public abstract process(arg_method: string, arg_operands: array, arg_credentials: Credentials): Promise source
Process request and returns datas.
Params:
Name | Type | Attribute | Description |
arg_method | string | method name |
|
arg_operands | array | request operands |
|
arg_credentials | Credentials | request credentials |