Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Foo = function()
- {
- var _cometd;
- var _counter;
- this.registered = function(name, cometd)
- {
- // Store the cometd object reference
- _cometd = cometd;
- };
- this.outgoing(message)
- {
- console.info("log me whenhever sth sent with cometd.publish");
- };
- };
- cometd.registerExtension('foo', new Foo());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement