public static final class WebSocketSubscriptionTransport.Factory extends java.lang.Object implements SubscriptionTransport.Factory
Constructor and Description |
---|
Factory(java.lang.String webSocketUrl,
okhttp3.WebSocket.Factory webSocketConnectionFactory) |
Modifier and Type | Method and Description |
---|---|
SubscriptionTransport |
create(SubscriptionTransport.Callback callback)
Creates and prepares a new
SubscriptionTransport . |
public Factory(@NotNull java.lang.String webSocketUrl, @NotNull okhttp3.WebSocket.Factory webSocketConnectionFactory)
public SubscriptionTransport create(@NotNull SubscriptionTransport.Callback callback)
SubscriptionTransport.Factory
SubscriptionTransport
.create
in interface SubscriptionTransport.Factory
callback
- which will handle the transport communication events.SubscriptionTransport