spring-framework / org.springframework.messaging.simp.user / SimpUser

SimpUser

interface SimpUser

Represents a connected user.

Author
Rossen Stoyanchev

Since
4.2

Functions

getName

abstract fun getName(): String

The unique user name.

getSession

abstract fun getSession(sessionId: String): SimpSession

Look up the session for the given id.

getSessions

abstract fun getSessions(): MutableSet<SimpSession>

Return the sessions for the user. The returned set is a copy and will never be modified.

hasSessions

abstract fun hasSessions(): Boolean

Whether the user has any sessions.