I am configuring Websockets in Spring basically by following the guide provided in the documentation.
I am currently trying to send a message from the server to the
I had the same problem, the error occurred because my websocket config file:
@Configuration
@EnableWebSocketMessageBroker
@EnableScheduling
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
}
was not scanned by spring.
so the fix was to add the package with this configuration file to the scanned packages.