Search in sources :

Example 1 with LoginResponse

use of net.runelite.http.api.ws.messages.LoginResponse in project runelite by runelite.

the class AccountService method notifySession.

private void notifySession(UUID uuid, String username) {
    WSSession session = SessionManager.findSession(uuid);
    if (session == null) {
        logger.info("Session {} logged in - but no websocket session", uuid);
        return;
    }
    WSService service = session.getServlet();
    LoginResponse response = new LoginResponse();
    response.setUsername(username);
    service.send(response);
}
Also used : LoginResponse(net.runelite.http.api.ws.messages.LoginResponse) WSSession(net.runelite.http.service.ws.WSSession) WSService(net.runelite.http.service.ws.WSService)

Aggregations

LoginResponse (net.runelite.http.api.ws.messages.LoginResponse)1 WSService (net.runelite.http.service.ws.WSService)1 WSSession (net.runelite.http.service.ws.WSSession)1