import MessagesSvcProvider from 'devapt-core-services/js/services/messages/messages_svc_provider.js'
MessagesSvcProvider
Extends:
Messages service provider class.
Example:
API:
this._msg_subscriptions = {
sender name:{
bus name:{
channel name:{
socket: server/browser socket,
unsubscribe: function
}
}
}
}
Constructor Summary
Public Constructor | ||
public |
constructor(arg_provider_name: string, arg_service_instance: Service, arg_context: string): nothing Create a messages gateway service provider. |
Member Summary
Public Members | ||
public |
Class test flag. |
Private Members | ||
private |
Messages subscriptions. |
Method Summary
Public Methods | ||
public abstract |
get_operations_names(): array Get provider operations names. |
|
public |
has_subscription(arg_sender: string, arg_bus: string, arg_channel: string): boolean Test if a message subscription exists. |
|
public |
init_subscription(arg_sender: string, arg_bus: string, arg_channel: string, arg_socket: Socket): boolean Test if a message subscription exists. |
|
public |
Produce service datas on request. |
|
public |
produce_send(arg_request: ServiceRequest): Promise Produce service datas on send request. |
|
public |
produce_subscribe(arg_request: ServiceRequest): Promise Produce service datas on subscribe request. |
|
public |
produce_unsubscribe(arg_request: ServiceRequest): Promise Produce service datas on unsubscribe request. |
Public Constructors
Public Members
Private Members
Public Methods
public has_subscription(arg_sender: string, arg_bus: string, arg_channel: string): boolean source
Test if a message subscription exists.
public init_subscription(arg_sender: string, arg_bus: string, arg_channel: string, arg_socket: Socket): boolean source
Test if a message subscription exists.
public produce(arg_request: ServiceRequest): Promise source
Produce service datas on request.
Params:
Name | Type | Attribute | Description |
arg_request | ServiceRequest | service request instance. |
public produce_send(arg_request: ServiceRequest): Promise source
Produce service datas on send request.
Params:
Name | Type | Attribute | Description |
arg_request | ServiceRequest | service request instance. |