Package io.ably.lib.transport
Class WebSocketTransport
java.lang.Object
io.ably.lib.transport.WebSocketTransport
- All Implemented Interfaces:
ITransport
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.ably.lib.transport.ITransport
ITransport.ConnectListener, ITransport.Mode, ITransport.TransportParams
-
Constructor Summary
ModifierConstructorDescriptionprotected
WebSocketTransport
(ITransport.TransportParams params, ConnectionManager connectionManager) protected constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this transport.void
connect
(ITransport.ConnectListener connectListener) ITransport methodsgetHost()
getURL()
Get connection URLprotected void
preProcessReceivedMessage
(ProtocolMessage message) void
receive
(ProtocolMessage msg) void
send
(ProtocolMessage msg) Send a message on the channeltoString()
protected void
Visible For Testing
-
Constructor Details
-
WebSocketTransport
protected WebSocketTransport(ITransport.TransportParams params, ConnectionManager connectionManager) protected constructor
-
-
Method Details
-
connect
ITransport methods- Specified by:
-
connect
in interfaceITransport
-
close
public void close()Description copied from interface:ITransport
Close this transport.- Specified by:
-
close
in interfaceITransport
-
receive
- Specified by:
-
receive
in interfaceITransport
- Throws:
AblyException
-
send
Description copied from interface:ITransport
Send a message on the channel- Specified by:
-
send
in interfaceITransport
- Throws:
AblyException
-
getHost
- Specified by:
-
getHost
in interfaceITransport
-
preProcessReceivedMessage
-
turnOffActivityCheckIfPingListenerIsNotSupported
protected void turnOffActivityCheckIfPingListenerIsNotSupported()Visible For Testing We need to turn off activity check for some tests (e.g. io.ably.lib.test.realtime.RealtimeConnectFailTest.disconnect_retry_channel_timeout_jitter_after_consistent_detach[binary_protocol]) Those tests expects that activity checks are passing, but protocol messages are not coming -
toString
-
getURL
Description copied from interface:ITransport
Get connection URL- Specified by:
-
getURL
in interfaceITransport
- Returns:
-