mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
156c0de832
This commit adds an endpoint to batch the sending of messages. This is useful to simplify client logic when sending a batch of messages and ensuring the correct order in the message stream. It currently implements only what's needed, and naively return an error if any of the messages fail.
12 lines
217 B
Go
12 lines
217 B
Go
package protocol
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
var (
|
|
ErrChatIDEmpty = errors.New("chat ID is empty")
|
|
ErrChatNotFound = errors.New("can't find chat")
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
)
|