atmosphere

Atmosphere with Android

泪湿孤枕 提交于 2019-12-23 19:38:43
问题 First, I plan to use Atmosphere on the server side and on the client side an Android app with a WebView in which I'll use jQuery. But, later on a more "standard" Android application is planned (no WebViews), and I want to know whether Atmosphere can be used too. Thanks! 回答1: The jQuery.atmosphere.js works fine on Android. So you should be OK. 回答2: You can try this approach: Server side: Atmosphere Meteor Servlet Meteor Servlet implementation is easy than Atmosphere runtime approach. Android

Getting error on pubsub example using Atmosphere + Jersey

十年热恋 提交于 2019-12-23 16:35:40
问题 I'm following the tutorial here http://jfarcand.wordpress.com/2011/06/29/rest-websocket-applications-why-not-using-the-atmosphere-framework/ I already have a Jersey project up and running and working fine using JBoss 7. The one difference i have is that i am using Jersey with Spring. So my JQueryPubSub looks like this @Service <-- For Spring component Scan @Path("/pubsub/{topic}") @Produces("text/html;charset=ISO-8859-1") public class JQueryPubSub { @PathParam("topic") Broadcaster topic; @GET

Local NPM/Atmosphere package repositories for Meteor applications without internet access

孤街醉人 提交于 2019-12-23 15:57:09
问题 I'm currently working on a fork of the Meteor application Rocket Chat . I have a requirement to stand up the application for testing and development on an isolated network, so no internet access whatsoever. I can't just get it running on a connected system and then copy it wholesale into the disconnected lab. Rather, I need to be able to check out a copy of the source code (from a local SCM) and then run Meteor, letting it perform all necessary compilation and dependency resolution on the fly

Atmosphere socket established but no data being received/sent

有些话、适合烂在心里 提交于 2019-12-23 03:04:49
问题 I am following the Atmosphere tutorial to get a basic chat application setup. Currently when running the javascript, it appears to be able to establish a connection to the server using web sockets. I get the following in the Chrome console: Invoking executeWebSocket core.js:2298 Using URL: ws://localhost:8080/web-transport/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json core.js:2298 Websocket successfully

How can I conditionally render .js file in h:head, if file was not rendered after Full Page Refresh (FPR)?

做~自己de王妃 提交于 2019-12-22 14:15:06
问题 PrimeFaces conditionally renders the following in h:head: <script type="text/javascript" src="/webapp/javax.faces.resource/push/push.js.jsf?ln=primefaces"><!--//--></script> when PrimeFaces p:socket component is added to JSF/xhtml page. Some of my page refreshes, result in this push.js file 'not' being rendered in h:head. When push.js file is 'not' rendered, I would like to conditionally render the push.js file in attempt to fix/workaround an issue I'm having with PrimeFaces Push. For more

WebSockets - correct approach for creating channels and pushing data

不问归期 提交于 2019-12-21 06:32:11
问题 I have a scenario whereby I want to inform users of my site that someone has commented on an article on which they have also commented. This is a lot like the way that SO notifies me when someone responds to a question! Server side, I persist the comment and then look up all users who commented on the same article. I then broadcast (I'm using Atmosphere): PushContext pushContext = PushContextFactory.getDefault().getPushContext(); for(User u : users){ // channel name, message pushContext.push(

Spring Webflow , Primefaces with Comet (Atmosphere)

坚强是说给别人听的谎言 提交于 2019-12-21 05:52:18
问题 Thinking to start a project using Spring Web Flow with Primefaces. I need to use comet so i figured Primefaces uses Atmosphere. I'm not really experienced with the Atmosphere / Comet business so any pointers about where to start is welcomed. Thanks in Advance 回答1: a very basic example can be found in the primefaces showcase: https://www.primefaces.org/showcase/push/chat.xhtml This is the old example for the ajax push component and is NOT officially included in the show case right now because

Spring Webflow , Primefaces with Comet (Atmosphere)

荒凉一梦 提交于 2019-12-21 05:52:03
问题 Thinking to start a project using Spring Web Flow with Primefaces. I need to use comet so i figured Primefaces uses Atmosphere. I'm not really experienced with the Atmosphere / Comet business so any pointers about where to start is welcomed. Thanks in Advance 回答1: a very basic example can be found in the primefaces showcase: https://www.primefaces.org/showcase/push/chat.xhtml This is the old example for the ajax push component and is NOT officially included in the show case right now because

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

可紊 提交于 2019-12-20 09:36:56
问题 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, it's not picking it up. Here's my code /server/users.js Accounts.onCreateUser(function(options, user){ var role = ['admin']; Roles.addUsersToRoles(user, role); return user; }); /client/page.js Template.hello.events({ 'click input': function () { var

How to close PrimeFaces socket connection

岁酱吖の 提交于 2019-12-20 06:01:10
问题 We’re using PrimeFaces 4.0 (socket) and atmosphere 2.0.3 for server side push in our J2E application. The issue with application it doesn’t close socket after closing browser or logout from the application. Hence application produce a socket in CLOSE_WAIT status and ultimately it create too many open connections(1024) and it throw below error. Most of the connections on this port on CLOSE_WAIT status. JBWEB003008: Maximum number of threads (1024) created for connector with address /0.0.0.0