0

Hi I followed the link: How to design push notifications using Atmosphere

To design push notifications, but am getting a null AtmosphereResource after line:AtmosphereResource resource = (AtmosphereResource)request.getAttribute(ApplicationConfig.ATMOSPHERE_RESOURCE);

I have used the code: AtmosphereFramework f = new AtmosphereFramework(); f.init(); in main function as mine is spring boot application.

For installing Atmosphere using the wiki: https://github.com/Atmosphere/atmosphere/wiki/Installing-Atmosphere

The client side code is same as the answer specifies

Can someone please help me?

Suvriti Gandhi
  • 185
  • 1
  • 2
  • 10

1 Answers1

0

found the mistake.. Had to add the code: f.doCometSupport(AtmosphereRequest, AtmosphereResponse); when my request comes in.

Suvriti Gandhi
  • 185
  • 1
  • 2
  • 10