Package io.ably.lib.transport
Interface ITransport
- All Known Implementing Classes:
WebSocketTransport
public interface ITransport
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static enum
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this transport.void
connect
(ITransport.ConnectListener connectListener) Initiate a connection attempt; the transport will be activated, and attempt to remain connected, until disconnect() is called.getHost()
getURL()
Get connection URLvoid
receive
(ProtocolMessage msg) void
send
(ProtocolMessage msg) Send a message on the channel
-
Field Details
-
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:
IOException
AblyException
-
receive
- Throws:
AblyException
-
getURL
String getURL()Get connection URL- Returns:
-
getHost
String getHost()
-