feat: wakuext_imageServerUrl

This commit is contained in:
Richard Ramos 2022-02-08 12:23:04 -04:00
parent 10b44a254c
commit 353767aee6
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package protocol
import "fmt"
func (m *Messenger) ImageServerURL() string {
return fmt.Sprintf("https://localhost:%d/messages/", m.imageServer.Port)
}

View File

@ -967,6 +967,10 @@ func (api *PublicAPI) BackupData() (uint64, error) {
return api.service.messenger.BackupData(context.Background())
}
func (api *PublicAPI) ImageServerURL() string {
return api.service.messenger.ImageServerURL()
}
// -----
// HELPER
// -----