<commit_before># node-xmpp-campfire

XMPP gateway for Campfire (beta)

Requires an XMPP (Jabber) client and hosted account. Google accounts will work with many third-party clients like Pidgin or Adium (Google apps accounts require DNS SRV records to be set for the apps domain - see below).


## Running the gateway

- Make sure there is a DNS SRV record for your gateway host (see below)
- Clone repository:

        git clone https://github.com/causes/node-xmpp-campfire.git
        git submodule update --init
    
- Install dependencies:

        npm install node-stringprep node-xmpp step
      
- Start the server with the gateway's domain:

        node xmpp-campfire.js campfire.example.com


## Using the gateway

"Join Group Chat" (wording may vary by client):

- Room: &lt;Campfire account&gt;+&lt;Campfire room&gt; (e.g. "mycompany+myroom")
- Server: &lt;Gateway domain&gt;
- Nickname: &lt;Campfire username (unless using token)&gt;
- Password: &lt;<PASSWORD> or <PASSWORD>&gt;


## DNS SRV records

node-xmpp-capfire requires xmpp-server DNS SRV records for both your XMPP host and the gateway host.

Examples:

    // Gateway record
    _xmpp-server._tcp.campfire.example.com. 7200 IN SRV 0 0 5269 server.example.com.
    
    // Google apps
    _xmpp-server._tcp.appsdomain.com. 7200 IN SRV 0 0 5269 talk.google.com.

<commit_msg>Add link to Wikipedia DNS SRV record page<commit_after># node-xmpp-campfire

XMPP gateway for Campfire (beta)

Requires an XMPP (Jabber) client and hosted account. Google accounts will work with many third-party clients like Pidgin or Adium (Google apps accounts require DNS SRV records to be set for the apps domain - see below).


## Running the gateway

- Make sure there is a DNS SRV record for your gateway host (see below)
- Clone repository:

        git clone https://github.com/causes/node-xmpp-campfire.git
        git submodule update --init
    
- Install dependencies:

        npm install node-stringprep node-xmpp step
      
- Start the server with the gateway's domain:

        node xmpp-campfire.js campfire.example.com


## Using the gateway

"Join Group Chat" (wording may vary by client):

- Room: &lt;Campfire account&gt;+&lt;Campfire room&gt; (e.g. "mycompany+myroom")
- Server: &lt;Gateway domain&gt;
- Nickname: &lt;Campfire username (unless using token)&gt;
- Password: &lt;<PASSWORD> password or API authentication token&gt;


## DNS SRV records

node-xmpp-capfire requires xmpp-server [DNS SRV records](http://en.wikipedia.org/wiki/SRV_record) for both your XMPP host and the gateway host.

Examples:

    // Gateway record
    _xmpp-server._tcp.campfire.example.com. 7200 IN SRV 0 0 5269 server.example.com.
    
    // Google apps
    _xmpp-server._tcp.appsdomain.com. 7200 IN SRV 0 0 5269 talk.google.com.


{'fraction_non_alphanumeric': 0.0908764367816092, 'fraction_numerical': 0.014367816091954023, 'mean_word_length': 3.3858267716535435, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1947883', 'n_tokens_mistral': 956, 'n_tokens_neox': 874, 'n_words': 320}