jsonpParam = jsonpParams.get(0);
}
channel.write(new AuthorizeMessage(msg, jsonpParam, origin, sessionId));
handshake(sessionId);
HandshakeMessage message = new HandshakeMessage(sessionId);
configuration.getStoreFactory().getPubSubStore().publish(PubSubStore.HANDSHAKE, message);
log.debug("Handshake authorized for sessionId: {}", sessionId);
} else {
HttpResponse res = new DefaultHttpResponse(HTTP_1_1, HttpResponseStatus.FORBIDDEN);
ChannelFuture f = channel.write(res);