puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

Fiber-enabled WebSocket JSR-356 API #24

Open cnsgcu opened 9 years ago

cnsgcu commented 9 years ago

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

circlespainter commented 9 years ago

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 commented 9 years ago

@cnsgcu Is this adequate to your needs?

cnsgcu commented 9 years ago

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.

circlespainter commented 9 years ago

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.

cnsgcu commented 9 years ago

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

circlespainter commented 9 years ago

Thanks for your interest and appreciation, stay tuned!