GWT module for CometD

14 views
Skip to first unread message

Bernhard

unread,
Feb 12, 2012, 4:20:20 PM2/12/12
to cometd-users
Hi all,

in the last days I played a bit with CometD (Java client & server,
JavaScript client) - really nice work.

To be able to quickly write a prototype in GWT I wrote a simple GWT
module that wraps the current CometD JavaScript client library
(together with Dojo). Maybe this is useful for others too. Therefore I
published the source code (togher with jar files to quickly start)
under the following address:
https://github.com/belu/gwt-cometd

Feedback welcome.

Have fun,
Bernhard

David Hoffer

unread,
Feb 12, 2012, 4:42:16 PM2/12/12
to cometd...@googlegroups.com
That's awesome...I'll have a look at this!

Just checking...does this support all features? I.e. Service
channels, Websocket, etc?

Thanks,
-Dave

> --
> You received this message because you are subscribed to the Google Groups "cometd-users" group.
> To post to this group, send email to cometd...@googlegroups.com
> To unsubscribe from this group, send email to cometd-users...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/cometd-users
>
> Visit the CometD website at http://www.cometd.org

Bernhard Lutzmann

unread,
Feb 12, 2012, 5:02:13 PM2/12/12
to cometd...@googlegroups.com

Hi David,

you can publish/subscribe to service channels with the CometD.publish() and CometD.subscribe() methods.
The WebSocket transport is enabled by default (if available). You can disable it with a call to CometD.disableWebSocketTransport().

Bernhard

David Hoffer

unread,
Feb 12, 2012, 6:42:26 PM2/12/12
to cometd...@googlegroups.com
Hi Bernhard,

Sounds good, I'll check it out.

Thanks,
-Dave

Reply all
Reply to author
Forward
0 new messages