io.higgs.ws.protocol.WebSocketDetectorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ws-server Show documentation
Show all versions of ws-server Show documentation
Higgs' WebSocket server implementation
package io.higgs.ws.protocol;
import io.higgs.core.ProtocolDetector;
import io.higgs.http.server.protocol.HttpDetectorFactory;
/**
* @author Courtney Robinson
*/
public class WebSocketDetectorFactory extends HttpDetectorFactory {
private final WebSocketConfiguration config;
public WebSocketDetectorFactory(WebSocketConfiguration config) {
super(config);
this.config = config;
}
@Override
public ProtocolDetector newProtocolDetector() {
return new WebSocketDetector(config);
}
@Override
public int priority() {
return 1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy