The preset configuration of the current method.
The designation of one or more connection this method communicates with.
Optional
content?: AnyBack<P, "content">The content of the message which initialized this request chain.
Function for sending data to another socket and returning one or more results.
Optional
msg: SendMap<P, F>The data to send
Optional
handlerFunction: stringThe name of the handler function on the target. If left empty the name of the current preset will be used.
Optional
timeout: numberNumber of milliseconds until the request is classified as failed.
Optional
targetSelector: Fname or filter object based on which the receiving socket(s) will be targeted.
Optional
transferOptions: OOptional
adapterOptions: Record<string, any>An object containing additional data to be forwarded to the outbound adapter if one is present.
Function for retrieving customData properties from one or more connected endpoints. This function is not async and fetches the currently cached customData.
Optional
key: stringThe name of the property you want to fetch If left empty the entire customData object will be fetched.
Optional
targetSelector: ConnectionFilter<C>The Endpoint to query. If left empty the endpoint(s) targeted by the current Communication will be used.
Optional
transferOptions: OptionsListAn Options object, by default the one the Communication was inititialized with. The "dataMode" property of the options object is used to decide of the customData value of first connected endpoint is returned ("first"), or if an array of values is returned
Either the value of a single customData property or the entire customData object
Function for sending data to another socket without expecting a return value.
Default connection filter.
Optional
msg: SendMap<P, F>The data to send to the other socket(s).
Optional
handlerFunction: stringThe name of the handler that will receive the data on the recipient.
Optional
targetSelector: Fname or filter object based on which the receiving socket(s) will be targeted.
Optional
transferOptions: OptionsListname or filter object based on which the receiving socket(s) will be targeted.
Optional
adapterOptions: Record<string, any>An object containing additional data to be forwarded to the outbound adapter if one is present.
Function for modifying the the current endpoint's customData properties. The change is immediately propagated to all active connections
The name of the property you want to change in your customData. If it already exists, it will be overwritten.
The new value of the property
Generated using TypeDoc
whatever you want