Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

remove deprecated type #102

Merged
merged 1 commit into from Jul 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions websocket.go
Expand Up @@ -12,11 +12,6 @@ import (
manet "github.com/multiformats/go-multiaddr/net"
)

// WsProtocol is the multiaddr protocol definition for this transport.
//
// Deprecated: use `ma.ProtocolWithCode(ma.P_WS)
var WsProtocol = ma.ProtocolWithCode(ma.P_WS)

// WsFmt is multiaddr formatter for WsProtocol
var WsFmt = mafmt.And(mafmt.TCP, mafmt.Base(ma.P_WS))

Expand Down Expand Up @@ -45,7 +40,7 @@ func (t *WebsocketTransport) CanDial(a ma.Multiaddr) bool {
}

func (t *WebsocketTransport) Protocols() []int {
return []int{WsProtocol.Code}
return []int{ma.ProtocolWithCode(ma.P_WS).Code}
}

func (t *WebsocketTransport) Proxy() bool {
Expand Down