package com.nitorcreations.willow.metrics;

import java.util.concurrent.TimeUnit;

import javax.inject.Singleton;

import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;

@Singleton
public class StatisticsServlet extends WebSocketServlet {
  private static final long serialVersionUID = 4980353154914279832L;

  @Override
  public void configure(WebSocketServletFactory factory) {
    factory.getPolicy().setIdleTimeout(TimeUnit.MINUTES.toMillis(10));
    factory.register(SaveEventsSocket.class);
  }
}

@@ -519,16 +519,150 @@
 s(10));%0A
+    factory.getPolicy().setMaxBinaryMessageBufferSize(1024 * 1024);%0A    factory.getPolicy().setMaxBinaryMessageSize(1024 * 1024 * 5);%0A
     fact

Increase max message size