io.javalin.websocket.CloseHandler Maven / Gradle / Ivy
The newest version!
/*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.websocket;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@FunctionalInterface
public interface CloseHandler {
void handle(@NotNull WsSession session, int statusCode, @Nullable String reason) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy