
<div class="block">Connect the supplied annotated endpoint to its server.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Session.html" title="interface in jakarta.websocket">Session</a></code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">WebSocketContainer.</span><code><span class="memberNameLink"><a href="../WebSocketContainer.html#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">connectToServer</a></span>&#8203;(<a