diff options
author | Wim <wim@42.be> | 2022-03-12 23:02:04 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2022-03-20 14:57:48 +0100 |
commit | aefa70891cfd489fccb8a9567b5bdafb0f863ede (patch) | |
tree | 90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/go.mau.fi/whatsmeow/socket/constants.go | |
parent | 1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff) | |
download | matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.gz matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.bz2 matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.zip |
Update vendor (whatsapp)
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/socket/constants.go')
-rw-r--r-- | vendor/go.mau.fi/whatsmeow/socket/constants.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/socket/constants.go b/vendor/go.mau.fi/whatsmeow/socket/constants.go index 88e9a90b..8b8b690e 100644 --- a/vendor/go.mau.fi/whatsmeow/socket/constants.go +++ b/vendor/go.mau.fi/whatsmeow/socket/constants.go @@ -10,7 +10,11 @@ // The Client struct in the top-level whatsmeow package handles everything. package socket -import "errors" +import ( + "errors" + + "go.mau.fi/whatsmeow/binary/token" +) const ( // Origin is the Origin header for all WhatsApp websocket connections @@ -22,11 +26,10 @@ const ( const ( NoiseStartPattern = "Noise_XX_25519_AESGCM_SHA256\x00\x00\x00\x00" - WADictVersion = 2 - WAMagicValue = 5 + WAMagicValue = 5 ) -var WAConnHeader = []byte{'W', 'A', WAMagicValue, WADictVersion} +var WAConnHeader = []byte{'W', 'A', WAMagicValue, token.DictVersion} const ( FrameMaxSize = 2 << 23 |