Looking around online, I have found that the way to create a socket is to create a class with the @WebSocket annotation and use the desirable annotated methods for events. In order for this socket to be used, a socket handler is used like so:
import org.eclipse.jetty.websocket.server.WebSocketHandler;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
import rsvp.RSVPSocket;
public class RSVPWebSocketHandler extends WebSocketHandler
{
@Override
public void configure ( WebSocketServletFactory factory )
{
factory.register( MySocket.class );
}
}
My question is: if "MySocket" class has a constructor that has parameters, how can I make the factory invoke that one correctly?