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
All Methods Instance Methods Abstract Methods 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 URLvoidsend(ProtocolMessage msg)Send a message on the channel
-
-
-
Method Detail
-
connect
void connect(ITransport.ConnectListener connectListener)
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
void send(ProtocolMessage msg) throws AblyException
Send a message on the channel- Parameters:
msg-- Throws:
java.io.IOExceptionAblyException
-
getURL
java.lang.String getURL()
Get connection URL- Returns:
-
getHost
java.lang.String getHost()
-
-