Skip to content

Websocket URL #92

@tmstieff-heaven

Description

@tmstieff-heaven

With the latest version of Springboot and the websockets library (3.4.3) it seems that the server expects to receive "/websocket" to the registered endpoint.

As an example, registering "/ws":

 registry.addEndpoint("/ws")
            .setAllowedOrigins(origin)
            .withSockJS();

Still requires the Stomp client to register "/ws/websocket" to handle the handshake correctly.

const stompClient = new StompJs.Client({
    brokerURL: 'ws://localhost:9090/ws/websocket'
});

None of the current documentation mentions this, which makes me think there may have been a recent change in the library, although checking the source and commit history did not reveal anything. Is there another configuration option I am missing or is this intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions