Returns true when the given protocol string satisfies the requirement. The requirement can be a single Shape, a RegExp, or a ReadonlyArray of either (any entry in the array may match). See WebSocketDefinition.connectProtocol.
true
Shape
RegExp
ReadonlyArray
WebSocketDefinition.connectProtocol
@rest-vir/api
Returns
truewhen the given protocol string satisfies the requirement. The requirement can be a singleShape, aRegExp, or aReadonlyArrayof either (any entry in the array may match). SeeWebSocketDefinition.connectProtocol.