https://github.com/nhooyr/websocket/blob/v1.8.11/accept.go#L237
Typically, path/filepath is used for OS-specific paths/etc while path has a OS neutral Match() method that works exactly the same in most cases.
A network lib shouldn't be using methods which behavior might vary depending on the OS.