func (t *chatTestBackendTransport) NextMessage() (*bpb.BackendMessage, error) {
	return <-t.receiveChan, nil
}
will return the next message from the transport
package chat
import (
	"encoding/hex"
	"testing"
	"time"
	ed25519 "golang.org/x/crypto/ed25519"
	backend "github.com/Bit-Nation/panthalassa/backend"
	db "github.com/Bit-Nation/panthalassa/db"
	profile "github.com/Bit-Nation/panthalassa/profile"
	queue "github.com/Bit-Nation/panthalassa/queue"
	uiapi "github.com/Bit-Nation/panthalassa/uiapi"
	bpb "github.com/Bit-Nation/protobuffers"
	require "github.com/stretchr/testify/require"
)
type chatTestBackendTransport struct {
	sendChan    chan *bpb.BackendMessage
	receiveChan chan *bpb.BackendMessage
}
func (t *chatTestBackendTransport) Send(msg *bpb.BackendMessage) error {
	t.sendChan <- msg
	return nil
}