Search in sources :

Example 1 with XHROptionsMessage

use of com.corundumstudio.socketio.messages.XHROptionsMessage in project netty-socketio by mrniko.

the class PollingTransport method onOptions.

private void onOptions(UUID sessionId, ChannelHandlerContext ctx, String origin) {
    ClientHead client = clientsBox.get(sessionId);
    if (client == null) {
        log.error("{} is not registered. Closing connection", sessionId);
        sendError(ctx);
        return;
    }
    ctx.channel().writeAndFlush(new XHROptionsMessage(origin, sessionId));
}
Also used : XHROptionsMessage(com.corundumstudio.socketio.messages.XHROptionsMessage) ClientHead(com.corundumstudio.socketio.handler.ClientHead)

Aggregations

ClientHead (com.corundumstudio.socketio.handler.ClientHead)1 XHROptionsMessage (com.corundumstudio.socketio.messages.XHROptionsMessage)1