Hi
On Thu, Mar 7, 2019 at 1:40 PM André Oliveira <
braa...@gmail.com> wrote:
>
> Hi! Thanks for the quick response!
>
> Now we are using the cometd version shipped with dojo 1.7 and if i'm not wrong is the cometd version 0.4 (readme file in attachment). We did nothing to "load" cometd, just require[(["dojox/cometd"]), the cometd files was already in the right directory.
require[(["dojox/cometd"]) should be enough, provided that you now
also put the CometD files (not shipped with Dojo anymore) in the
proper place.
However, Dojo has changed so you probably need some additional module from Dojo.
See
https://github.com/cometd/cometd/blob/4.0.3/cometd-javascript/examples-dojo/src/main/webapp/dojo-examples/chat/chat.js
Update also Dojo (current version is 1.15).
Consider also reading the primer:
https://docs.cometd.org/current/reference/#_primer
Follow the instructions there to get a fully working CometD web
application with Dojo.
When you have this example, you can modify your application in a way
that it is similar to what you obtained with the primer.