Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
886 additions
and
1,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.DS_Store | ||
node_modules | ||
npm-debug.log | ||
node-xmpp-browser.js | ||
node_modules/ | ||
|
||
!.editorconfig | ||
!.gitignore | ||
!.npmignore | ||
!.travis.yml | ||
|
||
bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
examples/ | ||
test/ | ||
|
||
.editorconfig | ||
.gitingore | ||
.npmignore | ||
.travis.yml | ||
|
||
CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
sudo: false | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "0.10" | ||
- "0.11" | ||
before_install: | ||
# Workaround for a permissions issue with Travis virtual machine images | ||
# that breaks Python's multiprocessing: | ||
# https://github.com/travis-ci/travis-cookbooks/issues/155 | ||
- sudo rm -rf /dev/shm | ||
- sudo ln -s /run/shm /dev/shm | ||
- npm i -g npm | ||
- sudo apt-get install libicu-dev prosody luarocks | ||
- sudo luarocks install luabitop | ||
before_script: | ||
- sudo cp node_modules/node-xmpp-client/test/resources/prosody.cfg.lua /etc/prosody/prosody.cfg.lua | ||
- sudo cp node_modules/node-xmpp-client/test/resources/mod_websocket.lua /usr/lib/prosody/modules/ | ||
- sudo service prosody stop | ||
- '0.10' | ||
- '0.12' | ||
- '4' | ||
- '5' | ||
- 'stable' | ||
|
||
before_script: npm install -g mocha standard |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
/* global XMPP */ | ||
|
||
var cl = new XMPP.Client({ | ||
/*websocketsURL: "ws://localhost:5280/",*/ | ||
boshURL: 'https://beta.buddycloud.org/http-bind/', | ||
jid: 'test@example.com', | ||
password: '***' | ||
/* websocketsURL: "ws://localhost:5280/", */ | ||
boshURL: 'https://beta.buddycloud.org/http-bind/', | ||
jid: 'test@example.com', | ||
password: '***' | ||
}) | ||
|
||
cl.addListener( | ||
'online', | ||
function() { | ||
['astro@spaceboyz.net'].forEach( | ||
function(to) { | ||
var stanza = new XMPP.Element('message', { to: to, type: 'chat'}) | ||
.c('body') | ||
.t('Hello from browser') | ||
cl.send(stanza) | ||
} | ||
) | ||
// nodejs has nothing left to do and will exit | ||
cl.end() | ||
} | ||
'online', | ||
function () { | ||
['astro@spaceboyz.net'].forEach( | ||
function (to) { | ||
var stanza = new XMPP.Element('message', {to: to, type: 'chat'}) | ||
.c('body') | ||
.t('Hello from browser') | ||
cl.send(stanza) | ||
} | ||
) | ||
// nodejs has nothing left to do and will exit | ||
cl.end() | ||
} | ||
) | ||
|
||
cl.addListener( | ||
'error', | ||
function(e) { | ||
console.error(e) | ||
} | ||
) | ||
'error', | ||
function (e) { | ||
console.error(e) | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.