Class: ConnectorAnnounceEvent
Defined in: src/common/web/api/connector/ConnectorEvents.ts:34
Emitted by a connector to let the server know about its existence.
Extends
Constructors
Constructor
new ConnectorAnnounceEvent(
name,origin,sender,target,hops,trace,apiKey):ConnectorAnnounceEvent
Defined in: src/common/web/core/messaging/Message.ts:63
Parameters
name
string
The name of the message.
origin
The initial source component of the message.
sender
The component from where the message came from.
target
Where the message should go to.
hops
UnitID[] = []
A list of components the message was sent through.
trace
string = ...
A unique trace identifying messages that logically belong together.
apiKey
string = ""
An optional API key to access protected resources.
Returns
ConnectorAnnounceEvent
Inherited from
Properties
api_key
readonlyapi_key:string=""
Defined in: src/common/web/core/messaging/Message.ts:50
Inherited from
authorization_private
readonlyauthorization_private:AuthorizationSettings
Defined in: src/common/web/api/connector/ConnectorEvents.ts:42
authorization_public
readonlyauthorization_public:AuthorizationSettings
Defined in: src/common/web/api/connector/ConnectorEvents.ts:41
category
readonlycategory:string=""
Defined in: src/common/web/api/connector/ConnectorEvents.ts:39
connector_id
readonlyconnector_id:string=""
Defined in: src/common/web/api/connector/ConnectorEvents.ts:35
description
readonlydescription:string=""
Defined in: src/common/web/api/connector/ConnectorEvents.ts:38
display_name
readonlydisplay_name:string=""
Defined in: src/common/web/api/connector/ConnectorEvents.ts:37
hops
readonlyhops:UnitID[] =[]
Defined in: src/common/web/core/messaging/Message.ts:46
Inherited from
logos
readonlylogos:ConnectorLogos
Defined in: src/common/web/api/connector/ConnectorEvents.ts:47
metadata_profiles
readonlymetadata_profiles:MetadataProfileContainerList=[]
Defined in: src/common/web/api/connector/ConnectorEvents.ts:51
name
readonlyname:string
Defined in: src/common/web/core/messaging/Message.ts:33
Inherited from
options
readonlyoptions:ConnectorOptions=ConnectorOptions.Default
Defined in: src/common/web/api/connector/ConnectorEvents.ts:43
origin
readonlyorigin:UnitID
Defined in: src/common/web/core/messaging/Message.ts:36
Inherited from
payload
readonlypayload:MessagePayload
Defined in: src/common/web/core/messaging/Message.ts:52
Inherited from
sender
readonlysender:UnitID
Defined in: src/common/web/core/messaging/Message.ts:39
Inherited from
target
readonlytarget:Channel
Defined in: src/common/web/core/messaging/Message.ts:42
Inherited from
trace
readonlytrace:string=""
Defined in: src/common/web/core/messaging/Message.ts:48
Inherited from
Category
readonlystaticCategory:string="Event"
Defined in: src/common/web/core/messaging/Event.ts:9
Inherited from
Accessors
messageCategory
Get Signature
get messageCategory():
string
Defined in: src/common/web/core/messaging/Event.ts:14
Gets the global message category.
Returns
string
Inherited from
Methods
convertToJSON()
convertToJSON():
string
Defined in: src/common/web/core/messaging/Message.ts:76
Converts this message to JSON.
Returns
string
Inherited from
toString()
toString():
string
Defined in: src/common/web/core/messaging/Message.ts:154
Gets the string representation of this message.
Returns
string
Inherited from
build()
staticbuild(messageBuilder,connectorID,name,description,category,authorizationPublic,authorizationPrivate,options,logos,metadataProfiles,chain):EventComposer<ConnectorAnnounceEvent>
Defined in: src/common/web/api/connector/ConnectorEvents.ts:56
Helper function to easily build this message.
Parameters
messageBuilder
connectorID
string
name
string
description
string
category
string
authorizationPublic
authorizationPrivate
options
logos
metadataProfiles
chain
null | Message
Returns
EventComposer<ConnectorAnnounceEvent>
convertFromJSON()
staticconvertFromJSON(msgType,data):Message
Defined in: src/common/web/core/messaging/Message.ts:93
Creates a message from JSON data.
Parameters
msgType
The message type to construct.
data
string
The JSON data string.
Returns
- The created message.
Inherited from
define()
staticdefine(name):Function
Defined in: src/common/web/core/messaging/Message.ts:128
Defines a new message.
The decorator takes care of wrapping the new class as a dataclass, passing the correct message
name to its constructor. It also registers the new message type in the global MessageTypesCatalog.
Examples:
@Message.define("msg/command")
class MyCommand extends Command {
...
}
Parameters
name
string
The name of the message.
Returns
Function
Inherited from
isProtected()
staticisProtected():boolean
Defined in: src/common/web/core/messaging/Message.ts:108
The frontend never receives or issues protected messages.
Returns
boolean
Inherited from
messageName()
staticmessageName():string
Defined in: src/common/web/core/messaging/Message.ts:101
Retrieves the name of the message type on a message class basis.
Returns
string