go-waku/library/mobile/api_lightpush.go

10 lines
366 B
Go
Raw Normal View History

2023-08-10 13:30:38 +00:00
package gowaku
import "github.com/waku-org/go-waku/library"
// LightpushPublish is used to publish a WakuMessage in a pubsub topic using Lightpush protocol
func LightpushPublish(messageJSON string, topic string, peerID string, ms int) string {
response, err := library.LightpushPublish(messageJSON, topic, peerID, ms)
return prepareJSONResponse(response, err)
}