code: protected void setWsMessageRouter(WsMessageRouter msgRouter) {
          internalMessageRouter.set(msgRouter);
  
          // Pass the earlierMessages queue to the router.
          // Now that the internalMessageRouter is non-null, this class will
          // NOT add any more messages to the earlierMessages queue.
          // The MessageRouter basically owns the earlierMessages queue
          // from now on.
  
          if (earlierMessages != null) {
              synchronized (this) {
                  if (earlierMessages != null) {
                      msgRouter.setEarlierMessages(earlierMessages);
                  }
              }
          } else {
              msgRouter.setEarlierMessages(null);
          }
      }
docs: Inject the internal WsMessageRouter.