githubEdit

Chat Core Protocols

The Chat Core code used by Thunderbird has some abstractions to deal with the differences between protocols (e.g. IRC vs. XMPP).

Protocol Interfaces

Protocols are implemented in chat core using JavaScript.

Protocols must implement the proper interfaces and be registered with the category manager in order to be found. Protocols need to implement the prplI* interfacesarrow-up-right (this can mostly be done using jsProtoHelperarrow-up-right). The minimum set of interfaces to implement are:

Useful Code

Example Implementations

The code for the JavaScript protocols we ship by default is herearrow-up-right.

Useful Code Snippets

Using Services.core.getProtocols() to list all protocols

This lists the protocol plugins that the core service knows about. You can copy the code (as it is), paste it in the error console (linebreaks will automatically be ignored) and press "Enter" to run it.

Last updated

Was this helpful?