comsat icon indicating copy to clipboard operation
comsat copied to clipboard

Fiber-enabled WebSocket JSR-356 API

Open cnsgcu opened this issue 10 years ago • 6 comments

Is there an artifact for WebSocket API in JSR-356?

cnsgcu avatar Jan 30 '15 07:01 cnsgcu

You can use JSR-356 WebSockets through the Web Actors API http://docs.paralleluniverse.co/comsat/#web-actors. The relevant artifacts are comsat-actors-api and comsat-actors-servlet.

circlespainter avatar Jan 30 '15 07:01 circlespainter

@cnsgcu Is this adequate to your needs?

circlespainter avatar Jan 30 '15 10:01 circlespainter

Thanks @circlespainter, is there a fiber API that is similar the one used in REST controller's resource methods? For example, I just annotate my @ServerEndpoint with @Suspendable and then my endpoint will handle all coming WS requests in a fiber.

cnsgcu avatar Jan 30 '15 16:01 cnsgcu

Not at this stage, currently you can use fibers to handle websockets only through Web Actors. I'll leave the issue open as a feature request.

circlespainter avatar Jan 30 '15 16:01 circlespainter

Thanks @circlespainter. Looking forward to this feature. Great work on fiber.

cnsgcu avatar Jan 30 '15 17:01 cnsgcu

Thanks for your interest and appreciation, stay tuned!

circlespainter avatar Jan 30 '15 17:01 circlespainter