I'm learning websockets. What I have done is established a websocket connection with Tomcat as server endpoint and for client side I have used JavaScript. Everything is fine.
What I want to know is if it is possible to have another Tomcat container as client endpoint? If so how can it be established? Or is it possible to use servlet or REST endpoint as client endpoint like:
@webservlet("/sampleservlet")
@clientendpoint
or
@requestmapping("/hello")
@clientend