* @param connection the connection
* @throws WebSocketException
*/
public WebsocketTransport(URI uri, IOConnection connection) {
try {
websocket = new WebSocketConnection(uri);
} catch (WebSocketException e) {
connection.transportError(e);
return;
}
this.connection = connection;