Package com.microsoft.signalr
Interface HubProtocol
-
public interface HubProtocol
A protocol abstraction for communicating with SignalR hubs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
int
getVersion()
java.util.List<HubMessage>
parseMessages(java.nio.ByteBuffer message, InvocationBinder binder)
Creates a new list ofHubMessage
s.java.nio.ByteBuffer
writeMessage(HubMessage message)
Writes the specifiedHubMessage
to a String.
-
-
-
Method Detail
-
getName
java.lang.String getName()
-
getVersion
int getVersion()
-
parseMessages
java.util.List<HubMessage> parseMessages(java.nio.ByteBuffer message, InvocationBinder binder)
Creates a new list ofHubMessage
s.- Parameters:
message
- A ByteBuffer representation of one or moreHubMessage
s.binder
- TheInvocationBinder
to use for this Protocol instance.- Returns:
- A list of
HubMessage
s.
-
writeMessage
java.nio.ByteBuffer writeMessage(HubMessage message)
Writes the specifiedHubMessage
to a String.- Parameters:
message
- The message to write.- Returns:
- A ByteBuffer representation of the message.
-
-