cwtch/protocol/connections/enginehooks.go

15 lines
335 B
Go
Raw Permalink Normal View History

2023-04-20 20:36:43 +00:00
package connections
import "git.openprivacy.ca/cwtch.im/tapir"
2023-04-20 20:38:10 +00:00
type EngineHooks interface {
SendPeerMessage(connection tapir.Connection, message []byte) error
}
type DefaultEngineHooks struct {
}
func (deh DefaultEngineHooks) SendPeerMessage(connection tapir.Connection, message []byte) error {
return connection.Send(message)
}