refactor: phase 2 integrated new dialer into worker
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package transport
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var InvalidProtocol = errors.New("URL must use ws:// or wss:// scheme")
|
||||
|
||||
func ParseURL(urlStr string) (*url.URL, error) {
|
||||
parsedURL, err := url.Parse(urlStr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user