func DialPeerConnWebSocket(ctx context.Context, peerURL *url.URL) (*PeerConnWebSocket, error) {
	conn, _, err := websocket.DefaultDialer.DialContext(ctx, peerURL.String(), nil)
	if err != nil {
		return nil, err
	}
	return NewPeerConnWebSocket(conn), nil
}
// DialPeerConnWebSocket opens a peer websocket connection.
DialPeerConnWebSocket opens a peer websocket connection.
// DialPeerConnWebSocket opens a peer websocket connection .
func DialPeerConnWebSocket(ctx context.Context, peerURL *url.URL) (*PeerConnWebSocket, error) {
	conn, _, err := websocket.DefaultDialer.DialContext(ctx, peerURL.String(), nil)
	if err != nil {
		return nil, err
	}
	return NewPeerConnWebSocket(conn), nil
}
func DialPeerConnWebSocket ( ctx context . Context , peerURL * url . URL ) ( * PeerConnWebSocket , error ) { conn , _ , err := websocket . DefaultDialer . DialContext ( ctx , peerURL . String ( ) , nil ) if err != nil { return nil , err } return NewPeerConnWebSocket ( conn ) , nil }
DialPeerConnWebSocket opens a peer websocket connection.
DialPeerConnWebSocket opens a peer websocket connection .