Configuration for this service.
The incoming HS token to expect. Must be set prior to calling listen(port).
The max number of bytes allowed on an incoming HTTP request. Default: 5000000.
Emitted when an event is pushed to the appservice. The format of the event object is documented at https://matrix.org/docs/spec/application_service/r0.1.2#put-matrix-app-v1-transactions-txnid
Emitted when an ephemeral event is pushed to the appservice. The format of the event object is documented at https://github.com/matrix-org/matrix-doc/pull/2409
Emitted when the HTTP listener logs some information.
access_tokens
are stripped from requests
Emitted when an event of a particular type is pushed to the appservice. This will be emitted in addition to "event", so ensure your bridge deduplicates events.
Should start with "type:"
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
The Express App instance for the appservice, which can be extended with paths.
Closes the HTTP server.
When the operation has completed
Begin listening on the specified port.
The port to listen on.
Optional hostname to listen on
Maximum length of the queue of pending connections
The callback for the "listening" event. Optional.
When the server is listening, if a callback is not provided.
Override this method to handle alias queries.
The queried room alias
The callback to invoke when complete.
A promise to resolve when complete (if callback isn't supplied)
Override this method to handle user queries.
The queried user ID.
The callback to invoke when complete.
A promise to resolve when complete (if callback isn't supplied)
Set the token that should be used to verify incoming events.
The home server token
Generated using TypeDoc
Construct a new application service.
If a homeserver token is not supplied.