Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Minimal Jsr 356 server setup

Hi,

I'm looking for some simple sample code that sets up a simple server and deploys a Jsr 356 annotated endpoint.

On the client side I would do something like this:

WebSocketContainer container = ContainerProvider.getWebSocketContainer();

        Jsr356AnnotatedClient c = new Jsr356AnnotatedClient();

        Session session = container.connectToServer(c, new URI("ws://localhost:1234"));

        session.getBasicRemote().sendText("Echo");


Back to the top