接口 SimpUserRegistry

    • 方法详细资料

      • getUser

        SimpUser getUser​(String userName)
        Get the user for the given name.
        参数:
        userName - the name of the user to look up
        返回:
        the user, or null if not connected
      • getUsers

        Set<SimpUsergetUsers()
        Return a snapshot of all connected users.

        The returned set is a copy and will not reflect further changes.

        返回:
        the connected users, or an empty set if none
      • getUserCount

        int getUserCount()
        Return the count of all connected users.
        返回:
        the number of connected users
        从以下版本开始:
        4.3.5