Skip to content

Commit

Permalink
Add support for WebSocket (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jul 31, 2023
1 parent 3438424 commit e3ab1e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import org.eclipse.jetty.util.security.Password;
import org.eclipse.jetty.webapp.WebAppClassLoader;
import org.eclipse.jetty.webapp.WebAppContext;
import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer;
import org.twdata.maven.mojoexecutor.MojoExecutor;
import sun.misc.Unsafe;

Expand Down Expand Up @@ -624,6 +625,7 @@ public void configureWebApp() throws Exception {
}
}
}
JettyWebSocketServletContainerInitializer.configure(getWebAppConfig(), null);
HashLoginService hashLoginService = (new HashLoginService("default"));
UserStore userStore = new UserStore();
hashLoginService.setUserStore(userStore);
Expand Down

0 comments on commit e3ab1e6

Please sign in to comment.