use of com.sedmelluq.discord.lavaplayer.node.message.MessageOutput in project lavaplayer by sedmelluq.
the class NodeController method handeTick.
@RequestMapping("/tick")
public void handeTick(HttpServletRequest request, HttpServletResponse response) throws IOException {
DataInputStream input = new DataInputStream(request.getInputStream());
DataOutputStream output = new DataOutputStream(response.getOutputStream());
MessageOutput messageOutput = new MessageOutput(mapper, output);
RemoteMessage message;
while ((message = mapper.decode(input)) != null) {
messageHandlerRegistry.processMessage(message, messageOutput);
}
messageOutput.send(statisticsManager.getStatistics());
mapper.endOutput(output);
}
Aggregations