Example usage for org.springframework.messaging.simp.user UserDestinationResolver interface-usage

List of usage examples for org.springframework.messaging.simp.user UserDestinationResolver interface-usage

Introduction

In this page you can find the example usage for org.springframework.messaging.simp.user UserDestinationResolver interface-usage.

Usage

From source file org.springframework.messaging.simp.user.DefaultUserDestinationResolver.java

/**
 * A default implementation of {@code UserDestinationResolver} that relies
 * on a {@link SimpUserRegistry} to find active sessions for a user.
 *
 * <p>When a user attempts to subscribe, e.g. to "/user/queue/position-updates",
 * the "/user" prefix is removed and a unique suffix added based on the session