Created
June 17, 2016 09:56
-
-
Save abhirockzz/7c68d38ff2b17a95f2417150b1fe3152 to your computer and use it in GitHub Desktop.
Embedded Websocket client using Tyrus JDK container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WebsocketClientOnVaniallJDKRunner { | |
public static void main(String[] args) throws DeploymentException, IOException, InterruptedException { | |
WebSocketContainer cc = ContainerProvider.getWebSocketContainer(); | |
Session connectToServer = cc.connectToServer(WebsocketAnotatedClient.class, URI.create("ws://localhost:8080/testwsep")); | |
new CountDownLatch(1).await(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment