mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-05 22:43:10 +00:00
move ws protocol definitions (ec8d1818a2/websocket.go (L23))
This commit is contained in:
parent
c80d054253
commit
0550a5ba36
@ -24,6 +24,7 @@ const (
|
|||||||
P_GARLIC64 = 0x01BE
|
P_GARLIC64 = 0x01BE
|
||||||
P_GARLIC32 = 0x01BF
|
P_GARLIC32 = 0x01BF
|
||||||
P_P2P_WEBRTC_DIRECT = 0x0114
|
P_P2P_WEBRTC_DIRECT = 0x0114
|
||||||
|
P_WS = 0x01DD
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -163,6 +164,11 @@ var (
|
|||||||
Code: P_P2P_WEBRTC_DIRECT,
|
Code: P_P2P_WEBRTC_DIRECT,
|
||||||
VCode: CodeToVarint(P_P2P_WEBRTC_DIRECT),
|
VCode: CodeToVarint(P_P2P_WEBRTC_DIRECT),
|
||||||
}
|
}
|
||||||
|
protoWS = Protocol{
|
||||||
|
Name: "ws",
|
||||||
|
Code: P_WS,
|
||||||
|
VCode: CodeToVarint(P_WS),
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -187,6 +193,7 @@ func init() {
|
|||||||
protoP2P,
|
protoP2P,
|
||||||
protoUNIX,
|
protoUNIX,
|
||||||
protoP2P_WEBRTC_DIRECT,
|
protoP2P_WEBRTC_DIRECT,
|
||||||
|
protoWS,
|
||||||
} {
|
} {
|
||||||
if err := AddProtocol(p); err != nil {
|
if err := AddProtocol(p); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user