Skip to content

Commit 118e7cc

Browse files
authored
[JENKINS-68933] Enable WebSocket (#240)
1 parent 62610b7 commit 118e7cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/winstone/HostConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.util.StringTokenizer;
3636
import java.util.jar.JarEntry;
3737
import java.util.jar.JarFile;
38+
import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer;
3839

3940
/**
4041
* Manages the references to individual webapps within the container. This object handles
@@ -181,6 +182,7 @@ public void postConfigure() throws Exception {
181182
getSessionHandler().getSessionCache().setEvictionPolicy( sessionEviction );
182183
}
183184
};
185+
JettyWebSocketServletContainerInitializer.configure(wac, null);
184186
wac.getSecurityHandler().setLoginService(loginService);
185187
wac.setThrowUnavailableOnStartupException(true); // if boot fails, abort the process instead of letting empty Jetty run
186188
wac.setMimeTypes(mimeTypes);

0 commit comments

Comments
 (0)