Publishes a message on a Redis broadcast channel.
RedisPublish(gRedis, "MyChannel", "Hello Redis from WINDEV")
Syntax
<Result> = RedisPublish(<Connection> , <Channel> , <Message>)
<Result>: Integer
Number of applications that received the message. Remark: This information is not available when connecting to a Redis cluster.
<Connection>: redisConnection variable
Name of the redisConnection variable that corresponds to the Redis server connection.
<Channel>: Character string
Name of the channel on which the message must be published. This string is encoded in UTF8 format.
<Message>: Character string or Buffer
Message to publish on the channel: - If it is a String parameter, it will be converted to UTF8 format.
- If it is a Buffer parameter, it will be sent in binary format.
Business / UI classification: Business Logic