/*
 * 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;

@FunctionalInterface
public interface BinaryMessageHandler {
    void handle(@NotNull WsSession session, @NotNull Byte[] msg, int offset, int length);
}

@@ -367,12 +367,29 @@
  length)
+ throws Exception
 ;%0A%7D%0A

Throw exception from BinaryMessageHandler#handle (closes #413)