Questions tagged [atmosphere]

The Asynchronous WebSocket/Comet Framework

Introduction

The Atmosphere Framework is a Java/Javascript framework which allows the creation of portable asynchronous applications using Groovy, Scala and Java. The Atmosphere Framework ships with a JavaScript component supporting all modern browsers and several server components supporting all major Java-based WebServers. The aim of the framework is to allow a developer to write an application and let the framework discover the best communication channel between the client and the server, transparently.

For example, a developer can write an application that will use the WebSocket protocol when used with a browser or server that supports the protocol, and transparently fall back to HTTP in case the WebSocket protocol isn’t supported. For example, an Atmosphere application will work fine with Internet Explorer 6, 7, 8, and 9 using HTTP, and will use the WebSocket protocol when used with Internet Explorer 10.


Useful links

Wasync libraries can be used to extend the functionality of Atmosphere framework.

E.g. To use Atmosphere in Android native application

536 questions
0
votes
1 answer

atmosphere p2p chat

I would like to know if it is possible to create web based chat with Atmosphere Framework that would work for p2p. In Atmosphere examples there are chat examples that broadcast message to all listeners that are currently subscribed. I would like to…
George
  • 255
  • 3
  • 18
0
votes
1 answer

Broadcasting in Atmosphere, which class to extend?

I'm using the atmosphere framework and I'm running a thread started in a ServletContextListener. I would like to broadcast data that this thread puts in the context however I'm confused what class I would have to extend where I can implement…
Thomas
  • 1,678
  • 4
  • 24
  • 47
0
votes
1 answer

Spring 3 + atmosphere - type AtmosphereResource is not generic

I am getting Error of (The type AtmosphereResource is not generic; it cannot be parameterized with arguments ) during implementation of the following method in my spring 3 controller. @RequestMapping(value="/websockets", method=RequestMethod.GET) …
Milople Inc
  • 399
  • 1
  • 8
  • 34
0
votes
0 answers

How to configure AtmosphereHandlerService: No AtmosphereHandler found message?

I create atmosphere handlers dynamically. In case of server restart, since the created handlers are lost, I get "No AtmosphereHandler found" exception. I want to configure this message, and send it to client, so that client can send request to…
raxith
  • 60
  • 1
  • 9
0
votes
1 answer

AtmosphereHandler is guaranteed to preserve the instance?

I'm using AtmosphereFramework's WebSockets, i've got a class annotated like this: @WebSocketHandlerService(path = "/gts") public class GameSocket extends WebSocketHandlerAdapter { @Override void onOpen(WebSocket webSocket) {...} @Override void…
Luca Vitucci
  • 3,674
  • 4
  • 36
  • 60
0
votes
1 answer

Accessing client IP using Atmosphere Framework

There is a way to access client's IP using the Atmosphere Framework's AtmosphereResource or WebSocket?
Luca Vitucci
  • 3,674
  • 4
  • 36
  • 60
0
votes
1 answer

CometD makes overkill of requests

I keep seeing strange message in the log files of my webapp. 127.0.0.1 - - [15/Jan/2013:23:00:53 +0000] "POST /cometd/connect HTTP/1.1" 200 147 This message is keep appearing in there and for the last few days I have seen in more then 20000 times…
Boris Horvat
  • 563
  • 2
  • 13
  • 28
0
votes
1 answer

Overrided broadcast(Object message, GwtAtmosphereResource resource) method in Atmosphere with GWT not working

We are trying to handle a scenario that when a user in quitting a room ,we send a message using MetaBroadcaster to all room .We implemented this feature by override broadcast method of AtmosphereGwtHandler . The feature is good when we testing…
Lopakhin
  • 269
  • 1
  • 3
  • 16
0
votes
1 answer

firebug iframe breaking atmosphere iframe

I have an invisible iframe that is talking to an atmosphere comet broadcaster. It works fine on most of the computers in the office. On one computer in the entire building it breaks. The problem seems to be that there is an iframe that somehow gets…
BostonJohn
  • 2,631
  • 2
  • 26
  • 48
0
votes
1 answer

CORS - Origin http://localhost is not allowed by Access-Control-Allow-Origin. error.

I'm having trouble enabling CORS for a web-app i'm building using the atmosphere framework (https://github.com/Atmosphere/atmosphere) My request looks something like : /** * @constructor * @extends {goog.events.EventTarget} * * @param {string}…
MikePatel
  • 2,593
  • 2
  • 24
  • 38
0
votes
1 answer

use atmosphere api or use grizzly directly?

i cannot see the different between using atmosphere api or use grizzly directly? can explain?
cometta
  • 35,071
  • 77
  • 215
  • 324
0
votes
1 answer

websocket is closed when loading Primefaces push / atmosphere example

I followed this tutorial to do a simple counter application in a primefaces project: http://blog.eisele.net/2012/09/primefaces-push-with-atmosphere-on.html When the page with the counter is loaded, I get an error msg saying that the websocket gets…
seinecle
  • 10,118
  • 14
  • 61
  • 120
0
votes
1 answer

Call Servlet doPost method from Managed bean

I have a servlet method where i need to pass a json object. This json object will be created in one of the managed bean(JSF). I just tried injecting the bean into the servlet to get the json object, but i am getting runtime exception, may be it is…
user1595858
  • 3,700
  • 15
  • 66
  • 109
0
votes
1 answer

how to enable NIO / atmosphere on tomcat 6

I'm trying out atmosphere on tomcat 6 but only long polling works not websockets. The message i receive in the console output is Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector…
MikeW
  • 4,749
  • 9
  • 42
  • 83
0
votes
1 answer

Grails Atmosphere Implementation

I am trying to implement auto update feature in my application using atmosphere plugin. I am also planning to use the same plugin to create a chat application. I have searched all over for proper documentation but I could not find any. Can you…
Eddard Stark
  • 3,575
  • 8
  • 35
  • 51
1 2 3
35
36