github.com/status-im/status-go@v1.1.0/waku/v0/const.go (about)

     1  package v0
     2  
     3  // Waku protocol parameters
     4  const (
     5  	Version    = uint64(0) // Peer version number
     6  	VersionStr = "0"       // The same, as a string
     7  	Name       = "waku"    // Nickname of the protocol
     8  
     9  	// Waku protocol message codes, according to https://github.com/vacp2p/specs/blob/master/specs/waku/waku-0.md
    10  	statusCode             = 0   // used in the handshake
    11  	messagesCode           = 1   // regular message
    12  	statusUpdateCode       = 22  // update of settings
    13  	batchAcknowledgedCode  = 11  // confirmation that batch of envelopes was received
    14  	messageResponseCode    = 12  // includes confirmation for delivery and information about errors
    15  	p2pRequestCompleteCode = 125 // peer-to-peer message, used by Dapp protocol
    16  	p2pRequestCode         = 126 // peer-to-peer message, used by Dapp protocol
    17  	p2pMessageCode         = 127 // peer-to-peer message (to be consumed by the peer, but not forwarded any further)
    18  	NumberOfMessageCodes   = 128
    19  )