pathvariable is no longer exits in the context of web sockets, but it can be accessed via the @DestinationVariable