/** * @OnOpen allows us to intercept the creation of a new session. The session class allows us to * send data to the user. In the method onOpen, we'll let the user know that the handshake was * successful. */ @OnOpen public void onOpen(Session session) { serverStateHolder.addInitSession(session); }