summaryrefslogtreecommitdiff
path: root/pkg/pubsub/message.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-02 19:16:36 +0300
committerGitHub <[email protected]>2021-06-02 19:16:36 +0300
commita99c14abb333c10a9142cd2f178e001f1b1726fb (patch)
treeec46ffb3db177f9aacef75d9c7bdcd6d894bf20c /pkg/pubsub/message.go
parent548ee4432e48b316ada00feec1a6b89e67ae4f2f (diff)
parent27295b35e4f2702bf73d8ab10d10b84e527daf2b (diff)
#698 feat(ws): replace `json` with binary flatbuffers
#698 feat(ws): replace `json` with binary flatbuffers
Diffstat (limited to 'pkg/pubsub/message.go')
-rw-r--r--pkg/pubsub/message.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/pubsub/message.go b/pkg/pubsub/message.go
index c17d153b..74348722 100644
--- a/pkg/pubsub/message.go
+++ b/pkg/pubsub/message.go
@@ -1,9 +1,5 @@
package pubsub
-import (
- json "github.com/json-iterator/go"
-)
-
type Message struct {
// Command (join, leave, headers)
Command string `json:"command"`
@@ -17,8 +13,3 @@ type Message struct {
// Payload to be broadcasted
Payload []byte `json:"payload"`
}
-
-// MarshalBinary needed to marshal message for the redis
-func (m *Message) MarshalBinary() ([]byte, error) {
- return json.Marshal(m)
-}