Last active
August 29, 2015 14:04
-
-
Save Tzeentchful/2c876d5ad6e2704f2945 to your computer and use it in GitHub Desktop.
Send a message to all servers on a Lilypad cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NetServerAnnouncer { | |
private Connect connect; | |
public NetServerAnnouncer(Connect connect) { | |
this.connect = connect; | |
} | |
public void sendMessage() { | |
try { | |
this.connect.request(new MessageRequest(Collections.EMPTY_LIST, "SomeChannel", "Some Message")); | |
} catch(RequestException exception) { | |
// ignore | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment