All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payneteasy.socketio.SocketIoContext Maven / Gradle / Ivy

There is a newer version: 1.0-8
Show newest version
package com.payneteasy.socketio;

/**
 *
 */
public class SocketIoContext {

    private final String id;
    private final SocketIoSession session;

    public SocketIoContext(String aId, SocketIoSession aSession) {
        id = aId;
        session = aSession;
    }

    public void ack() {
        if(id!=null) {
            session.sendAck(id);
        }
    }

    public void sendEvent(String aEventName, Object ... args) {
        session.sendEvent(aEventName, args);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy