Websocket path parameters - optional or required?

Are websocket path parameters optional? In other words, given the following endpoint registration:

WebSocketRegister("/ws/thread/{threadid}/{userid}", threadListener);

Will the threadListener component handle both of these endpoints:

/ws/thread/{threadid}

/ws/thread/{threadid}/{userid}

Or would I need to create a separate listener for each endpoint?

IIRC they are all required.

It’s simple to test :wink: