aboutsummaryrefslogtreecommitdiff
path: root/pkg/commands/publish.go
blob: 5959d5718237c9882a1efa35193fc862de183f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package commands

import (
	"net"
	"redisClone/pkg/pubsub"
)

func Publish(hub *pubsub.Hub, conn net.Conn, args []string) interface{}{
	channel := args[1]
	msg := args[2]
	return hub.Publish(channel, msg)
}