Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public Main() throws Exception {

XmppWebSocketServlet wss = new XmppWebSocketServlet();
ServletHolder sh = new ServletHolder(wss);
//Preventing the WebSocket connection from terminating after 5mins of idle time
sh.setInitParameter("maxIdleTime", "-1");
ServletContextHandler sch = new ServletContextHandler();
sch.addServlet(sh, "/websocket/*");

Expand All @@ -48,4 +50,4 @@ public Main() throws Exception {

}

}
}