Java客户端,我使用大气框架网络套接字我发送秋天的第一选择回转到长池,如何撒施消息从Java服务器在大气的框架
用于在运行原生作为Maven的气氛依赖工具 Tomcat的V8作为服务器
我喜欢收到在Java代码中的广播消息,所以我请参考以下链接 http://blog.javaforge.net/post/32659151672/atmosphere-per-session-broadcaster Broadcast to only one client with Atmosphere https://github.com/Atmosphere/atmosphere https://atmosphere.java.net/atmosphere_whitepaper.pdf
从上面的链接和图表样本我成功地构建项目,但我可以从客户端到服务器广播都是JAVA语言。 此外,我写了一个BroadcastFactory作为
服务器: BroadcasterFactory.getDefault()查询( “URL广播”,真).scheduleFixedBroadcast(消息,2,TimeUnit.SECONDS);
客户端 AtmosphereRequest请求= atmosphereResource.getRequest(); String IncomingMessage = request.getReader()。readLine();
在这里,虽然我把调试模式我得到NULL作为价值,这让我问是否我做错了或框架不支持的问题。
FYI: 我用这个链接 https://github.com/Atmosphere/atmosphere/wiki/Creating-private-channel-of-communication-between-Browsers
我续得到行
privateChannel
.addAtmosphereResource(atmosphereResource_browser1)
.addAtmosphereResource(atmosphereResource_browser2);
atmosphereResource_browser意味着它的定义浏览器的名称?
请建议我如何进行更多,链接或视频的共享将是helpfull.Thank提前