}
@OnClose
public void onClose(Session session, CloseReason reason) {
final ErraiWebSocketChannel removedChannel = CHANNELS.remove(session.getId());
removedChannel.onSessionClosed();
if (reason != null) {
final int closeCode = reason.getCloseCode().getCode();
switch (closeCode) {
case CLOSE_CODE_ABNORMAL:
LOGGER.debug("abnormal closing of the websocket session");