2023-04-20 20:36:43 +00:00
|
|
|
package connections
|
2023-04-20 19:18:54 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-04-20 19:18:54 +00:00
|
|
|
type DefaultEngineHooks struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (deh DefaultEngineHooks) SendPeerMessage(connection tapir.Connection, message []byte) error {
|
|
|
|
return connection.Send(message)
|
|
|
|
}
|