private static class MessageSender.NotifySender extends MessageSender
Modifier | Constructor and Description |
---|---|
private |
NotifySender() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getResponses(HubConnection connection,
Message msg,
java.lang.String[] recipientIds)
Sends a message to a given list of recipients.
|
main, runMain, showResults
public java.util.Map getResponses(HubConnection connection, Message msg, java.lang.String[] recipientIds) throws java.io.IOException
MessageSender
recipientIds
is null, then will be sent to all
subscribed clients.getResponses
in class MessageSender
connection
- hub connectionmsg
- message to sendrecipientIds
- array of recipients to target, or nulljava.io.IOException