java - how the server initiate request to any particular client from websockets? -
how server initiate request particular client java websockets,how url of clients
@clientendpoint public class websocketclient { session usersession = null; private messagehandler messagehandler; public websocketclient(uri endpointuri) { system.out.println("**************************************************"); try { websocketcontainer container = containerprovider.getwebsocketcontainer(); container.connecttoserver(this, endpointuri); } catch (exception e) { throw new runtimeexception(e); } }
Comments
Post a Comment