Package er.websocketexample

Source Code of er.websocketexample.Application

package er.websocketexample;

import er.extensions.appserver.ERXApplication;
import er.websocketexample.websockets.ExampleWebSocketFactory;
import er.woadaptor.websockets.WebSocketStore;

public class Application extends ERXApplication {
  public static void main(String[] argv) {
    ERXApplication.main(argv, Application.class);
  }

  public Application() {
    ERXApplication.log.info("Welcome to " + name() + " !");
    /* ** put your initialization code in here ** */
  }
 
  @Override
  public void finishInitialization() {
    super.finishInitialization();
    WebSocketStore.defaultWebSocketStore().setFactory(new ExampleWebSocketFactory());
  }
}
TOP

Related Classes of er.websocketexample.Application

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.