javaatmosphere

Getting Atmosphere transport used in Java


I'm using Atmosphere for development and I need to get the transport(websocket, long-polling etc.) through which the clients are connected to the server in my back-end.

Is there any method in AtmosphereResource to find out?

If not, how can I find out from the resource?


Solution

  • AtmosphereResource.transport() will do the work.