Skip to content

Could be possible to allow Regular expressions for path in Service add method? #239

@GibbOne

Description

@GibbOne

In WebSocketServer, could be useful to have a method AddWebSocketService with path argument as a regular expression.

In this way a set of request url could be managed by the same WebSocketBehavior.

Something like what Owin.Websocket does in the following code.

using Owin.WebSocket.Extensions;

//For dynamic routes where you may want to capture the URI arguments use a Regex route
app.MapWebSocketPattern<MyWebSocket>("/captures/(?<capture1>.+)/(?<capture2>.+)");

What do you think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions