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

org.spincast.quickstart.exchange.AppWebsocketContext Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.spincast.quickstart.exchange;

import org.spincast.core.websocket.WebsocketContext;

/**
 * Custom type which allows our application to
 * extend the default Websocket Context.
 * 
 * Spincast will pass an instance of this class to all 
 * Websocket events handlers, when a new event occures.
 */
public interface AppWebsocketContext extends WebsocketContext {

    /**
     * A custom method example.
     * This will simply send a "Hello!" message to the
     * current peer.
     */
    public void helloCurrentPeer();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy