Package de.jochenbrissier.backyard.web

Source Code of de.jochenbrissier.backyard.web.BackyardSocket

package de.jochenbrissier.backyard.web;

import javax.servlet.http.HttpServletRequest;

import org.eclipse.jetty.websocket.WebSocket;
import org.eclipse.jetty.websocket.WebSocketServlet;

import de.jochenbrissier.backyard.core.Backyard;
import de.jochenbrissier.backyard.core.Member;
import de.jochenbrissier.backyard.core.WebSocketMember;
import de.jochenbrissier.backyard.core.WebsocketModule;
import de.jochenbrissier.backyard.module.WebsocketEvent;
import de.jochenbrissier.backyard.util.MessagePatternJSON;

public class BackyardSocket extends WebSocketServlet {

  @Override
  protected WebSocket doWebSocketConnect(HttpServletRequest req, String arg1) {
 
    //get socket event
    WebsocketEvent ev= (WebsocketEvent) Backyard.getSocketMember(req).getEvent();
    return ev;
  }

}
TOP

Related Classes of de.jochenbrissier.backyard.web.BackyardSocket

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.