Skip to main content

PUBLISH

Syntax​

PUBLISH channel message

Module​

pubsub

Categories​

pubsub fast

Description​

Publish a message to the specified channel.

Examples​

Publish a message to the specified channel:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.Publish("channel1", "Hello, world!")