class okhttp.internal.ws.RealWebSocket$2 extends java.lang.Object implements okhttp.Callback
{
final okhttp.Request val$request;
final okhttp.internal.ws.RealWebSocket this$0;
void <init>(okhttp.internal.ws.RealWebSocket, okhttp.Request)
{
okhttp.internal.ws.RealWebSocket v;
okhttp.Request v;
okhttp.internal.ws.RealWebSocket$2 v;
v := @this: okhttp.internal.ws.RealWebSocket$2;
v := @parameter: okhttp.internal.ws.RealWebSocket;
v := @parameter: okhttp.Request;
v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0> = v;
v.<okhttp.internal.ws.RealWebSocket$2: okhttp.Request val$request> = v;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void onResponse(okhttp.Call, okhttp.Response)
{
java.net.Socket v;
okhttp.WebSocketListener v;
okhttp.internal.ws.RealWebSocket$2 v;
okhttp.internal.connection.StreamAllocation v;
okhttp.internal.Internal v;
okhttp.Response v;
okhttp.internal.ws.RealWebSocket v, v, v, v, v, v, v;
okhttp.Call v;
java.lang.String v, v;
okhttp.Request v;
java.lang.Exception v;
java.net.ProtocolException v;
okhttp.internal.ws.RealWebSocket$Streams v;
okhttp.HttpUrl v;
okhttp.internal.connection.RealConnection v, v;
v := @this: okhttp.internal.ws.RealWebSocket$2;
v := @parameter: okhttp.Call;
v := @parameter: okhttp.Response;
label:
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void checkResponse(okhttp.Response)>(v);
label:
goto label;
label:
v := @caughtexception;
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void failWebSocket(java.lang.Exception,okhttp.Response)>(v, v);
staticinvoke <okhttp.internal.Util: void closeQuietly(java.io.Closeable)>(v);
return;
label:
v = <okhttp.internal.Internal: okhttp.internal.Internal instance>;
v = virtualinvoke v.<okhttp.internal.Internal: okhttp.internal.connection.StreamAllocation streamAllocation(okhttp.Call)>(v);
virtualinvoke v.<okhttp.internal.connection.StreamAllocation: void noNewStreams()>();
v = virtualinvoke v.<okhttp.internal.connection.StreamAllocation: okhttp.internal.connection.RealConnection connection()>();
v = virtualinvoke v.<okhttp.internal.connection.RealConnection: okhttp.internal.ws.RealWebSocket$Streams newWebSocketStreams(okhttp.internal.connection.StreamAllocation)>(v);
label:
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
v = v.<okhttp.internal.ws.RealWebSocket: okhttp.WebSocketListener listener>;
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.WebSocketListener: void onOpen(okhttp.WebSocket,okhttp.Response)>(v, v);
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.Request val$request>;
v = virtualinvoke v.<okhttp.Request: okhttp.HttpUrl url()>();
v = virtualinvoke v.<okhttp.HttpUrl: java.lang.String redact()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("OkHttp WebSocket \u0001");
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void initReaderAndWriter(java.lang.String,okhttp.internal.ws.RealWebSocket$Streams)>(v, v);
v = virtualinvoke v.<okhttp.internal.connection.StreamAllocation: okhttp.internal.connection.RealConnection connection()>();
v = virtualinvoke v.<okhttp.internal.connection.RealConnection: java.net.Socket socket()>();
virtualinvoke v.<java.net.Socket: void setSoTimeout(int)>(0);
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void loopReader()>();
label:
goto label;
label:
v := @caughtexception;
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void failWebSocket(java.lang.Exception,okhttp.Response)>(v, null);
label:
return;
catch java.net.ProtocolException from label to label with label;
catch java.lang.Exception from label to label with label;
}
public void onFailure(okhttp.Call, java.io.IOException)
{
okhttp.internal.ws.RealWebSocket v;
java.io.IOException v;
okhttp.Call v;
okhttp.internal.ws.RealWebSocket$2 v;
v := @this: okhttp.internal.ws.RealWebSocket$2;
v := @parameter: okhttp.Call;
v := @parameter: java.io.IOException;
v = v.<okhttp.internal.ws.RealWebSocket$2: okhttp.internal.ws.RealWebSocket this$0>;
virtualinvoke v.<okhttp.internal.ws.RealWebSocket: void failWebSocket(java.lang.Exception,okhttp.Response)>(v, null);
return;
}
}