else
{
session = oldSession;
}
IPageManager pageManager = session.getPageManager();
try
{
Page page = (Page) pageManager.getPage(pageId);
WebSocketRequestHandler requestHandler = new WebSocketRequestHandler(page, connection);
WebSocketPayload payload = createEventPayload(message, requestHandler);
page.send(application, Broadcast.BREADTH, payload);
if (!(message instanceof ConnectedMessage || message instanceof ClosedMessage))
{
requestHandler.respond(requestCycle);
}
}
finally
{
pageManager.commitRequest();
}
}
catch (Exception x)
{
LOG.error("An error occurred during processing of a WebSocket message", x);