@Override public void connectionAdded(Server server, HostedConnection hc) { // Just in case super.connectionAdded(server, hc); // Send the client the registration information hc.send(SerializerRegistrationsMessage.INSTANCE); } }
/** * Returns the server for this hosted service or null if * the service is not yet attached. */ protected Server getServer() { HostedServiceManager hsm = getServiceManager(); return hsm == null ? null : hsm.getServer(); }
@Override public void connectionAdded(Server server, HostedConnection hc) { // Just in case super.connectionAdded(server, hc); // Send the client the registration information hc.send(SerializerRegistrationsMessage.INSTANCE); } }
/** * Returns the server for this hosted service or null if * the service is not yet attached. */ protected Server getServer() { HostedServiceManager hsm = getServiceManager(); return hsm == null ? null : hsm.getServer(); }
@Override public void connectionAdded(Server server, HostedConnection hc) { // Just in case super.connectionAdded(server, hc); System.out.println("DelayService.connectionAdded(" + hc + ")"); safeSleep(500); System.out.println("DelayService.delay done"); } }