2
0
mirror of https://github.com/status-im/go-waku.git synced 2025-01-23 12:10:17 +00:00

10 lines
366 B
Go
Raw Normal View History

2023-08-10 09:30:38 -04: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)
}