Package io.ably.lib.transport
Interface ITransport
- All Known Implementing Classes:
WebSocketTransport
public interface ITransport
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceITransport.ConnectListenerstatic interfaceITransport.Factorystatic classITransport.Modestatic classITransport.TransportParams -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG -
Method Summary
Modifier and Type Method Description voidclose()Close this transport.voidconnect(ITransport.ConnectListener connectListener)Initiate a connection attempt; the transport will be activated, and attempt to remain connected, until disconnect() is called.java.lang.StringgetHost()java.lang.StringgetURL()Get connection URLvoidreceive(ProtocolMessage msg)voidsend(ProtocolMessage msg)Send a message on the channel
-
Field Details
-
TAG
static final java.lang.String TAG
-
-
Method Details
-
connect
Initiate a connection attempt; the transport will be activated, and attempt to remain connected, until disconnect() is called.- Throws:
AblyException
-
close
void close()Close this transport. -
send
Send a message on the channel- Parameters:
msg-- Throws:
java.io.IOExceptionAblyException
-
receive
- Throws:
AblyException
-
getURL
java.lang.String getURL()Get connection URL- Returns:
-
getHost
java.lang.String getHost()
-