List<String> jsonpParams = params.get("jsonp");
String jsonpParam = null;
if (jsonpParams != null) {
jsonpParam = jsonpParams.get(0);
}
channel.writeAndFlush(new AuthorizeMessage(msg, jsonpParam, origin, sessionId));
authorizedSessionIds.put(sessionId, data);
log.debug("Handshake authorized for sessionId: {}", sessionId);
} else {
HttpResponse res = new DefaultHttpResponse(HTTP_1_1, HttpResponseStatus.UNAUTHORIZED);