All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.higgs.ws.protocol.WebSocketDetectorFactory Maven / Gradle / Ivy

There is a newer version: 0.0.24
Show newest version
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