سؤال

I'm about to build a web application in Play Framework and I'll need to have bidirectional communication between the server and the browser.

For modern browsers I can use web sockets, but for older browsers I will need to use long polling. Is there a library that will abstract away this choice and choose whichever one is supported by the browser? Similar to SignalR in .net.

هل كانت مفيدة؟

المحلول

It seems like the Atmoshphere library is absolutely what I was looking for. https://github.com/Atmosphere/atmosphere

نصائح أخرى

Two good options nowdays:

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top