.class public final Lokhttp3/internal/ws/WebSocketWriter; .super Ljava/lang/Object; .source "WebSocketWriter.kt" # interfaces .implements Ljava/io/Closeable; # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nWebSocketWriter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WebSocketWriter.kt\nokhttp3/internal/ws/WebSocketWriter\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,202:1\n1#2:203\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\u0018\u00002\u00020\u0001B5\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\u0008\u001a\u00020\u0003\u0012\u0006\u0010\t\u001a\u00020\u0003\u0012\u0006\u0010\n\u001a\u00020\u000b\u00a2\u0006\u0002\u0010\u000cJ\u0008\u0010\u001b\u001a\u00020\u001cH\u0016J\u0018\u0010\u001d\u001a\u00020\u001c2\u0006\u0010\u001e\u001a\u00020\u001f2\u0008\u0010 \u001a\u0004\u0018\u00010!J\u0018\u0010\"\u001a\u00020\u001c2\u0006\u0010#\u001a\u00020\u001f2\u0006\u0010$\u001a\u00020!H\u0002J\u0016\u0010%\u001a\u00020\u001c2\u0006\u0010&\u001a\u00020\u001f2\u0006\u0010\'\u001a\u00020!J\u000e\u0010(\u001a\u00020\u001c2\u0006\u0010$\u001a\u00020!J\u000e\u0010)\u001a\u00020\u001c2\u0006\u0010$\u001a\u00020!R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\r\u001a\u0004\u0018\u00010\u000eX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0011\u001a\u00020\u0012X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0013\u001a\u0004\u0018\u00010\u0014X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0008\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0015\u0010\u0016R\u0011\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0017\u0010\u0018R\u000e\u0010\u0019\u001a\u00020\u0012X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u001a\u001a\u00020\u0003X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006*" } d2 = { "Lokhttp3/internal/ws/WebSocketWriter;", "Ljava/io/Closeable;", "isClient", "", "sink", "Lokio/BufferedSink;", "random", "Ljava/util/Random;", "perMessageDeflate", "noContextTakeover", "minimumDeflateSize", "", "(ZLokio/BufferedSink;Ljava/util/Random;ZZJ)V", "maskCursor", "Lokio/Buffer$UnsafeCursor;", "maskKey", "", "messageBuffer", "Lokio/Buffer;", "messageDeflater", "Lokhttp3/internal/ws/MessageDeflater;", "getRandom", "()Ljava/util/Random;", "getSink", "()Lokio/BufferedSink;", "sinkBuffer", "writerClosed", "close", "", "writeClose", "code", "", "reason", "Lokio/ByteString;", "writeControlFrame", "opcode", "payload", "writeMessageFrame", "formatOpcode", "data", "writePing", "writePong", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private final isClient:Z .field private final maskCursor:Lokio/Buffer$UnsafeCursor; .field private final maskKey:[B .field private final messageBuffer:Lokio/Buffer; .field private messageDeflater:Lokhttp3/internal/ws/MessageDeflater; .field private final minimumDeflateSize:J .field private final noContextTakeover:Z .field private final perMessageDeflate:Z .field private final random:Ljava/util/Random; .field private final sink:Lokio/BufferedSink; .field private final sinkBuffer:Lokio/Buffer; .field private writerClosed:Z # direct methods .method public constructor (ZLokio/BufferedSink;Ljava/util/Random;ZZJ)V .locals 1 const-string v0, "sink" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "random" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 44 invoke-direct {p0}, Ljava/lang/Object;->()V iput-boolean p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->isClient:Z iput-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->sink:Lokio/BufferedSink; iput-object p3, p0, Lokhttp3/internal/ws/WebSocketWriter;->random:Ljava/util/Random; iput-boolean p4, p0, Lokhttp3/internal/ws/WebSocketWriter;->perMessageDeflate:Z iput-boolean p5, p0, Lokhttp3/internal/ws/WebSocketWriter;->noContextTakeover:Z iput-wide p6, p0, Lokhttp3/internal/ws/WebSocketWriter;->minimumDeflateSize:J .line 53 new-instance p3, Lokio/Buffer; invoke-direct {p3}, Lokio/Buffer;->()V iput-object p3, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; .line 56 invoke-interface {p2}, Lokio/BufferedSink;->getBuffer()Lokio/Buffer; move-result-object p2 iput-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; const/4 p2, 0x0 if-eqz p1, :cond_0 const/4 p3, 0x4 new-array p3, p3, [B goto :goto_0 :cond_0 move-object p3, p2 :goto_0 iput-object p3, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B if-eqz p1, :cond_1 .line 64 new-instance p2, Lokio/Buffer$UnsafeCursor; invoke-direct {p2}, Lokio/Buffer$UnsafeCursor;->()V :cond_1 iput-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; return-void .end method .method private final writeControlFrame(ILokio/ByteString;)V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->writerClosed:Z if-nez v0, :cond_4 .line 112 invoke-virtual {p2}, Lokio/ByteString;->size()I move-result v0 int-to-long v1, v0 const-wide/16 v3, 0x7d cmp-long v1, v1, v3 if-gtz v1, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 const/4 v1, 0x0 :goto_0 if-eqz v1, :cond_3 or-int/lit16 p1, p1, 0x80 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 118 invoke-virtual {v1, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-boolean p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->isClient:Z if-eqz p1, :cond_1 or-int/lit16 p1, v0, 0x80 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 123 invoke-virtual {v1, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->random:Ljava/util/Random; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B .line 125 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {p1, v1}, Ljava/util/Random;->nextBytes([B)V iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B .line 126 invoke-virtual {p1, v1}, Lokio/Buffer;->write([B)Lokio/Buffer; if-lez v0, :cond_2 iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 129 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v0 iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 130 invoke-virtual {p1, p2}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; iget-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 132 invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {p1, p2}, Lokio/Buffer;->readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 133 invoke-virtual {p1, v0, v1}, Lokio/Buffer$UnsafeCursor;->seek(J)I .line 134 sget-object p1, Lokhttp3/internal/ws/WebSocketProtocol;->INSTANCE:Lokhttp3/internal/ws/WebSocketProtocol; iget-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B invoke-virtual {p1, p2, v0}, Lokhttp3/internal/ws/WebSocketProtocol;->toggleMask(Lokio/Buffer$UnsafeCursor;[B)V iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 135 invoke-virtual {p1}, Lokio/Buffer$UnsafeCursor;->close()V goto :goto_1 :cond_1 iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 138 invoke-virtual {p1, v0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 139 invoke-virtual {p1, p2}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; :cond_2 :goto_1 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sink:Lokio/BufferedSink; .line 142 invoke-interface {p0}, Lokio/BufferedSink;->flush()V return-void .line 113 :cond_3 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Payload size must be less than or equal to 125" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 110 :cond_4 new-instance p0, Ljava/io/IOException; const-string p1, "closed" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method # virtual methods .method public close()V .locals 0 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageDeflater:Lokhttp3/internal/ws/MessageDeflater; if-eqz p0, :cond_0 .line 199 invoke-virtual {p0}, Lokhttp3/internal/ws/MessageDeflater;->close()V :cond_0 return-void .end method .method public final getRandom()Ljava/util/Random; .locals 0 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketWriter;->random:Ljava/util/Random; return-object p0 .end method .method public final getSink()Lokio/BufferedSink; .locals 0 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sink:Lokio/BufferedSink; return-object p0 .end method .method public final writeClose(ILokio/ByteString;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 87 sget-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString; if-nez p1, :cond_0 if-eqz p2, :cond_3 :cond_0 if-eqz p1, :cond_1 .line 90 sget-object v0, Lokhttp3/internal/ws/WebSocketProtocol;->INSTANCE:Lokhttp3/internal/ws/WebSocketProtocol; invoke-virtual {v0, p1}, Lokhttp3/internal/ws/WebSocketProtocol;->validateCloseCode(I)V .line 92 :cond_1 new-instance v0, Lokio/Buffer; invoke-direct {v0}, Lokio/Buffer;->()V .line 93 invoke-virtual {v0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; if-eqz p2, :cond_2 .line 95 invoke-virtual {v0, p2}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; .line 97 :cond_2 invoke-virtual {v0}, Lokio/Buffer;->readByteString()Lokio/ByteString; move-result-object v0 :cond_3 const/16 p1, 0x8 const/4 p2, 0x1 .line 102 :try_start_0 invoke-direct {p0, p1, v0}, Lokhttp3/internal/ws/WebSocketWriter;->writeControlFrame(ILokio/ByteString;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 iput-boolean p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->writerClosed:Z return-void :catchall_0 move-exception p1 iput-boolean p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->writerClosed:Z .line 104 throw p1 .end method .method public final writeMessageFrame(ILokio/ByteString;)V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "data" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->writerClosed:Z if-nez v0, :cond_6 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; .line 149 invoke-virtual {v0, p2}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; or-int/lit16 v0, p1, 0x80 iget-boolean v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->perMessageDeflate:Z if-eqz v1, :cond_1 .line 152 invoke-virtual {p2}, Lokio/ByteString;->size()I move-result p2 int-to-long v1, p2 iget-wide v3, p0, Lokhttp3/internal/ws/WebSocketWriter;->minimumDeflateSize:J cmp-long p2, v1, v3 if-ltz p2, :cond_1 iget-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageDeflater:Lokhttp3/internal/ws/MessageDeflater; if-eqz p2, :cond_0 goto :goto_0 .line 154 :cond_0 new-instance p2, Lokhttp3/internal/ws/MessageDeflater; iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->noContextTakeover:Z invoke-direct {p2, v0}, Lokhttp3/internal/ws/MessageDeflater;->(Z)V iput-object p2, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageDeflater:Lokhttp3/internal/ws/MessageDeflater; :goto_0 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; .line 155 invoke-virtual {p2, v0}, Lokhttp3/internal/ws/MessageDeflater;->deflate(Lokio/Buffer;)V or-int/lit16 v0, p1, 0xc0 :cond_1 iget-object p1, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; .line 158 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide p1 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 159 invoke-virtual {v1, v0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->isClient:Z if-eqz v0, :cond_2 const/16 v0, 0x80 goto :goto_1 :cond_2 const/4 v0, 0x0 :goto_1 const-wide/16 v1, 0x7d cmp-long v1, p1, v1 if-gtz v1, :cond_3 long-to-int v1, p1 or-int/2addr v0, v1 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 168 invoke-virtual {v1, v0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto :goto_2 :cond_3 const-wide/32 v1, 0xffff cmp-long v1, p1, v1 if-gtz v1, :cond_4 or-int/lit8 v0, v0, 0x7e iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 172 invoke-virtual {v1, v0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; long-to-int v1, p1 .line 173 invoke-virtual {v0, v1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; goto :goto_2 :cond_4 or-int/lit8 v0, v0, 0x7f iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 177 invoke-virtual {v1, v0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; .line 178 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer; :goto_2 iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->isClient:Z if-eqz v0, :cond_5 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->random:Ljava/util/Random; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B .line 183 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v0, v1}, Ljava/util/Random;->nextBytes([B)V iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B .line 184 invoke-virtual {v0, v1}, Lokio/Buffer;->write([B)Lokio/Buffer; const-wide/16 v0, 0x0 cmp-long v2, p1, v0 if-lez v2, :cond_5 iget-object v2, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; iget-object v3, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 187 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v2, v3}, Lokio/Buffer;->readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; iget-object v2, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 188 invoke-virtual {v2, v0, v1}, Lokio/Buffer$UnsafeCursor;->seek(J)I .line 189 sget-object v0, Lokhttp3/internal/ws/WebSocketProtocol;->INSTANCE:Lokhttp3/internal/ws/WebSocketProtocol; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; iget-object v2, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskKey:[B invoke-virtual {v0, v1, v2}, Lokhttp3/internal/ws/WebSocketProtocol;->toggleMask(Lokio/Buffer$UnsafeCursor;[B)V iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->maskCursor:Lokio/Buffer$UnsafeCursor; .line 190 invoke-virtual {v0}, Lokio/Buffer$UnsafeCursor;->close()V :cond_5 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sinkBuffer:Lokio/Buffer; iget-object v1, p0, Lokhttp3/internal/ws/WebSocketWriter;->messageBuffer:Lokio/Buffer; .line 194 invoke-virtual {v0, v1, p1, p2}, Lokio/Buffer;->write(Lokio/Buffer;J)V iget-object p0, p0, Lokhttp3/internal/ws/WebSocketWriter;->sink:Lokio/BufferedSink; .line 195 invoke-interface {p0}, Lokio/BufferedSink;->emit()Lokio/BufferedSink; return-void .line 147 :cond_6 new-instance p0, Ljava/io/IOException; const-string p1, "closed" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final writePing(Lokio/ByteString;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "payload" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/16 v0, 0x9 .line 69 invoke-direct {p0, v0, p1}, Lokhttp3/internal/ws/WebSocketWriter;->writeControlFrame(ILokio/ByteString;)V return-void .end method .method public final writePong(Lokio/ByteString;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "payload" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/16 v0, 0xa .line 75 invoke-direct {p0, v0, p1}, Lokhttp3/internal/ws/WebSocketWriter;->writeControlFrame(ILokio/ByteString;)V return-void .end method