Enable a SendPeerMessage EngineHook for Fuzzbot #508

Merged
sarah merged 5 commits from fuzzbot into master 2023-04-20 21:00:15 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 746bfffb7c - Show all commits

View File

@ -86,10 +86,6 @@ type Engine interface {
Shutdown()
}
type EngineHooks interface {
SendPeerMessage(connection tapir.Connection, message []byte) error
}
// NewProtocolEngine initializes a new engine that runs Cwtch using the given parameters
func NewProtocolEngine(identity primitives.Identity, privateKey ed25519.PrivateKey, acn connectivity.ACN, eventManager event.Manager, peerAuthorizations map[string]model.Authorization, engineHooks EngineHooks) Engine {
engine := new(engine)

View File

@ -2,6 +2,10 @@ package connections
import "git.openprivacy.ca/cwtch.im/tapir"
type EngineHooks interface {
SendPeerMessage(connection tapir.Connection, message []byte) error
}
type DefaultEngineHooks struct {
}