How to use websocket with Restlet card?

We have a webserver written in Restlet framework, now we want to implement websocket to replace the design of long polls which is causing some performance issues. Checked forum and RestLet document, it looks like websocket is not supported yet, and not even on schedule. And we don't want to replace Restlet with a different frame work, as it will be a big change, now we come up with some design suggestions and not sure which is best:

  • Start another Jetty server and use the Jetty websocket lib to work with the web connection;
    • Pron: no need to create a websocket lib database on Restlet yourself;
    • Cons: You need to have 2 servers listening on different ports.
  • Develop our own websocket lib based on Restlet:
    • Prons: no need to start a second server;
    • Cons: Great development effort.

We are still investigating, appreciate the sharing and your valuable comments, thanks!

+3


source to share


1 answer


Websites are not yet supported in Restlet framework, issue opens: https://github.com/restlet/restlet-framework-java/issues/893



+1


source







All Articles