Package io.ably.lib.transport
Class WebSocketTransport
java.lang.Object
io.ably.lib.transport.WebSocketTransport
- All Implemented Interfaces:
 ITransport
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.ably.lib.transport.ITransport
ITransport.ConnectListener, ITransport.Mode, ITransport.TransportParams - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebSocketTransport(ITransport.TransportParams params, ConnectionManager connectionManager) protected constructor - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this transport.voidconnect(ITransport.ConnectListener connectListener) Connect is called once when we create transport; after transport is closed, we never call `connect` againgetHost()getURL()Get connection URLprotected voidpreProcessReceivedMessage(ProtocolMessage message) voidreceive(ProtocolMessage msg) voidsend(ProtocolMessage msg) Send a message on the channeltoString()protected voidVisible For Testing 
- 
Constructor Details
- 
WebSocketTransport
protected WebSocketTransport(ITransport.TransportParams params, ConnectionManager connectionManager) protected constructor 
 - 
 - 
Method Details
- 
connect
Connect is called once when we create transport; after transport is closed, we never call `connect` again- Specified by:
 - 
connectin interfaceITransport 
 - 
close
public void close()Description copied from interface:ITransportClose this transport.- Specified by:
 - 
closein interfaceITransport 
 - 
receive
- Specified by:
 - 
receivein interfaceITransport - Throws:
 AblyException
 - 
send
Description copied from interface:ITransportSend a message on the channel- Specified by:
 - 
sendin interfaceITransport - Throws:
 AblyException
 - 
getHost
- Specified by:
 - 
getHostin 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:ITransportGet connection URL- Specified by:
 - 
getURLin interfaceITransport - Returns:
 
 
 -