Update mautrix-go to enable appservice websockets

This commit is contained in:
Tulir Asokan 2023-06-09 15:44:29 +03:00
parent 37b809e660
commit 7c33ed04c4
4 changed files with 11 additions and 3 deletions

View file

@ -17,6 +17,13 @@ homeserver:
# Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
async_media: false
# Should the bridge use a websocket for connecting to the homeserver?
# The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
# mautrix-asmux (deprecated), and hungryserv (proprietary).
websocket: false
# How often should the websocket be pinged? Pinging will be disabled if this is zero.
ping_interval_seconds: 0
# Application service host/registration related details.
# Changing these values requires regeneration of the registration.
appservice:

2
go.mod
View file

@ -18,7 +18,7 @@ require (
golang.org/x/net v0.10.0
google.golang.org/protobuf v1.30.0
maunium.net/go/maulogger/v2 v2.4.1
maunium.net/go/mautrix v0.15.3-0.20230609085119-3b3db3ca863b
maunium.net/go/mautrix v0.15.3-0.20230609124302-54a73ab22ef9
)
require (

4
go.sum
View file

@ -131,5 +131,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8=
maunium.net/go/maulogger/v2 v2.4.1/go.mod h1:omPuYwYBILeVQobz8uO3XC8DIRuEb5rXYlQSuqrbCho=
maunium.net/go/mautrix v0.15.3-0.20230609085119-3b3db3ca863b h1:D2J4FSnHvdSbDb1ejTZEJySfH4sFpdZdKBFfuv73Jco=
maunium.net/go/mautrix v0.15.3-0.20230609085119-3b3db3ca863b/go.mod h1:h4NwfKqE4YxGTLSgn/gawKzXAb2sF4qx8agL6QEFtGg=
maunium.net/go/mautrix v0.15.3-0.20230609124302-54a73ab22ef9 h1:MixixPn9FMv99V/6wdwDB18HR/1m69JDAc4VcEar8Wc=
maunium.net/go/mautrix v0.15.3-0.20230609124302-54a73ab22ef9/go.mod h1:h4NwfKqE4YxGTLSgn/gawKzXAb2sF4qx8agL6QEFtGg=

View file

@ -151,6 +151,7 @@ func (br *WABridge) Start() {
br.Provisioning.Init()
}
go br.CheckWhatsAppUpdate()
br.WaitWebsocketConnected()
go br.StartUsers()
if br.Config.Metrics.Enabled {
go br.Metrics.Start()