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
119
votes
8 answers

Can not deserialize instance of java.lang.String out of START_OBJECT token

I'm running into an issue where my deployable jar hits an exception that doesn't happen when I run this locally in IntelliJ. Exception: Receiving an event {id=2, socket=0c317829-69bf-43d6-b598-7c0c550635bb, type=getDashboard,…
Ben
  • 60,438
  • 111
  • 314
  • 488
39
votes
3 answers

Websocket frame size limitation

I'm sending huge chunks of JSON data through websockets. The JSON may have over 1000 entries. Due to the frame size limitation, the Websocket protocol automatically splits the JSON into frames, which cannot be helped. As we cannot change the frame…
Gaurav Bhor
  • 1,057
  • 2
  • 11
  • 26
29
votes
1 answer

Ignore WebSocket connection in Spring Security SavedRequest

I have a Grails application with spring-security-core plugin and Atmosphere framework. If I log out from a page that has opened a WebSocket connection, then Spring Security keeps the URL of the WebSocket connection as SavedRequest. DEBUG…
Aram Arabyan
  • 2,339
  • 1
  • 17
  • 30
16
votes
1 answer

How to design push notifications using Atmosphere

I want to use atmosphere to develop a notification System. I am very new to Atmosphere so apologies if I am wrong somewhere. What i understood is when a Actor publishes something I save the notification action to the database. What i don't…
Saurabh Kumar
  • 16,353
  • 49
  • 133
  • 212
15
votes
2 answers

A message body writer for Java class ... and MIME media type text/html was not found

I am using the jms/atmosphere framework to make communication between two applications. One of the applications is a message producer for a topic, sending custom objects of the following type: @XmlRootElement public class A implements…
mejas
  • 297
  • 1
  • 5
  • 17
15
votes
7 answers

unable to add roles to user with meteor using 'roles' package

I'm trying to use the 'roles' package available on Atmosphere but I can't get it to work with Accounts.onCreateUser(), I can get the example on github. When I register a user, I want to add a role to them, when I test whether the role is assigned,…
user1627990
  • 2,587
  • 2
  • 16
  • 18
13
votes
2 answers

HTTP Request returns 200 OK but no content in response

In developing a particular web site, I have an intermittent issue when loading the site in Firefox (haven't been able to compare in IE or Chrome). The site loads several javascript files, css stylesheets, images, etc. Occasionally, one or more of…
pacifier21
  • 813
  • 1
  • 5
  • 13
13
votes
6 answers

Websockets connection failure on amazon ec2

I have a netty server running the atmosphere framework for a real-time notification system over websockets. The system works perfectly on my local machine, but when I deploy it on EC2, It just does not seem to work. I am able to telnet to the remote…
user371427
  • 143
  • 1
  • 1
  • 5
9
votes
2 answers

Tomcat crashes with error java.lang.OutOfMemoryError: GC overhead limit exceeded

After the tomcat ran several months, I got unexpectetly the error below. We restarted the tomcat and the error do not appear now but may be will come again in the future. I saw that another users had simmilar exceptions, related with the garbage…
Vesselin
  • 91
  • 1
  • 1
  • 3
9
votes
2 answers

Websocket best practice for groups chat / one websocket for all groups or one websocket per group?

I have to implement a chat application using websocket, users will chat via groups, there can be thousands of groups and a user can be in multiple groups. I'm thinking about 2 solutions: [1] for each group chat, I create a websocket endpoint (using…
Dzung BUI
  • 188
  • 2
  • 9
9
votes
1 answer

Atmosphere: How to get logged in user from webSocket connection in Grails?

I am working on bringing WebSockets functionality to my Grails application. I use Atmosphere Meteor plugin 0.7.1 for this purpose. The workflow is simple: User logs in the system. User open page with WebSockets functionality User clicks a Connect…
Humanity
  • 241
  • 3
  • 9
7
votes
3 answers

How to get Vaadin Push work through Apache HTTP server?

I'm trying to get Vaadin 7.1.5 Push to work on Apache Tomcat 7.0.42 + Apache HTTP server (2.2.14 with mod_proxy_wstunnel). The Vaadin application and push with WebSocket works fine when I access Tomcat directly (ie. http://mydomain:8080/myapp). The…
miq
  • 2,746
  • 2
  • 24
  • 35
7
votes
1 answer

Websocket failed. Downgrading to Comet and resending

I am using Atmosphere framework 2.0.0.RC5 to extend my web application with websocket functionality and faced some strange error 'Websocket failed. Downgrading to Comet and resending', which I can't get away. I used a websocket chat example as a my…
Evgeny Tugarev
  • 271
  • 4
  • 10
7
votes
1 answer

Atmosphere Jersey - Server messages

Is it possible to let the server send messages to all connected clients without waiting for any action from them? Let me explain it :-) I've been reading the docs/examples and I have found nothing that satifies my needs: the flow is always the same;…
jarandaf
  • 4,297
  • 6
  • 38
  • 67
6
votes
4 answers

Vaadin 7, Atmosphere and Server Push problems

I've started to build a project using the Maven archetype for Vaadin 7.2.4 and am getting a lot of errors thrown up relating to Atmosphere startup issues. As things stand, I won't be able to enable push support which I'd require to use an addon…
rustproofFish
  • 931
  • 10
  • 32
1
2 3
35 36