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

Commit

Permalink
Merge pull request #102 from libp2p/remove-deprecated-type
Browse files Browse the repository at this point in the history
remove deprecated type
  • Loading branch information
marten-seemann committed Jul 22, 2021
2 parents 55a8b2b + 860650a commit 666bbbe
Showing 1 changed file with 1 addition and 6 deletions.
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

0 comments on commit 666bbbe

Please sign in to comment.