io.contek.invoker.binancespot.api.websocket.WebSocketApi Maven / Gradle / Ivy
package io.contek.invoker.binancespot.api.websocket;
import com.google.common.collect.ImmutableList;
import io.contek.invoker.commons.actor.IActor;
import io.contek.invoker.commons.actor.ratelimit.TypedPermitRequest;
import io.contek.invoker.commons.websocket.*;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
public abstract class WebSocketApi extends BaseWebSocketApi {
protected WebSocketApi(IActor actor, IWebSocketMessageParser parser) {
super(actor, parser, IWebSocketAuthenticator.noOp(), IWebSocketLiveKeeper.noOp());
}
@Override
protected final ImmutableList getRequiredQuotas() {
return ImmutableList.of();
}
@Override
protected final void checkErrorMessage(AnyWebSocketMessage message)
throws WebSocketRuntimeException {}
}