Search in sources :

Example 21 with Endpoint

use of jakarta.websocket.Endpoint in project tomcat by apache.

the class TestWsWebSocketContainerGetOpenSessions method testClientAClientAPojoAPojoB.

@Test
public void testClientAClientAPojoAPojoB() throws Exception {
    Endpoint client1 = new ClientEndpointA();
    Endpoint client2 = new ClientEndpointA();
    doTest(client1, client2, "/pojoA", "/pojoB", 2, 2, 2, 2);
}
Also used : Endpoint(jakarta.websocket.Endpoint) ServerEndpoint(jakarta.websocket.server.ServerEndpoint) Test(org.junit.Test)

Aggregations

Endpoint (jakarta.websocket.Endpoint)21 ServerEndpoint (jakarta.websocket.server.ServerEndpoint)15 Test (org.junit.Test)12 ClientEndpointConfig (jakarta.websocket.ClientEndpointConfig)5 Session (jakarta.websocket.Session)4 WebSocketContainer (jakarta.websocket.WebSocketContainer)4 URI (java.net.URI)4 Context (org.apache.catalina.Context)4 DefaultServlet (org.apache.catalina.servlets.DefaultServlet)4 Tomcat (org.apache.catalina.startup.Tomcat)4 ArrayList (java.util.ArrayList)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 TesterEndpoint (org.apache.tomcat.websocket.TesterMessageCountClient.TesterEndpoint)3 TesterProgrammaticEndpoint (org.apache.tomcat.websocket.TesterMessageCountClient.TesterProgrammaticEndpoint)3 EndpointConfig (jakarta.websocket.EndpointConfig)2 ServerEndpointConfig (jakarta.websocket.server.ServerEndpointConfig)2 List (java.util.List)2 AsyncText (org.apache.tomcat.websocket.TesterMessageCountClient.AsyncText)2 TesterAnnotatedEndpoint (org.apache.tomcat.websocket.TesterMessageCountClient.TesterAnnotatedEndpoint)2 ServletException (jakarta.servlet.ServletException)1