Method Java WebSocket equivalent to SuperWebSocket

Jun 19, 2014 at 6:02 PM
Edited Jun 19, 2014 at 6:03 PM
Hello everybody! I'm working in a project for porting a Java Aplication to C#. In a determinate part, the code uses the Java API for WebSocket and I decided to use SuperWebSocket. All went good until I found the next:
if (! webSocketInitialized) {
            WebSocketContainer client = ContainerProvider.getWebSocketContainer();
            try {
                localSession = client.connectToServer(Object annotatedEndpointInstance, URI path)));
                webSocketInitialized = true;
            } catch (DeploymentException | URISyntaxException | IOException e) {
                throw new RuntimeException(e);
            System.err.println("started and connected");
Specificly, I want to know what method is similar to "connectToServer" because in the documentation of here I lost me and I didn't find anything in other side.

Excuse me if the answer is very simple, but I'm newer with this.

Jun 20, 2014 at 4:57 AM
Please find any .NET websocket client to connect the websocket server.