package ed;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public final class a implements f {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final c f25825a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ e f25826b;

    public a(e eVar, c cVar) {
        this.f25826b = eVar;
        this.f25825a = cVar;
    }

    @Override // ed.f
    public void onMessage(@Nullable ByteBuffer byteBuffer, @NonNull g gVar) {
        e eVar = this.f25826b;
        try {
            this.f25825a.onMessage(eVar.f25834c.decodeMessage(byteBuffer), new fe.h(this, gVar, 21, 0));
        } catch (RuntimeException unused) {
            String str = eVar.f25833b;
            gVar.reply(null);
        }
    }
}
