checkSessionExists(pathParams.sessionId(), request);
addTransportHandler(new JsonpSendTransport(factory.config()), ctx);
addSessionHandler(new SendingSessionState(sessions), sessions.get(pathParams.sessionId()), ctx);
break;
case WEBSOCKET:
addTransportHandler(new WebSocketTransport(factory.config()), ctx);
addSessionHandler(new WebSocketSessionState(), new SockJsSession(randomUUID().toString(), factory.create()),
ctx);
break;
}
ctx.fireChannelRead(request.retain());