Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Path("/feed")
public class RESTFeed {
@Inject
Event<String> event;
@POST
@Consumes(MediaType.TEXT_PLAIN)
public void push(String msg) {
event.fire(msg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment