func InitBroadcaster() {
	Broadcaster = EventBroadcaster{
		chBroadcast:  make(chan string),
		chRegister:   make(chan *client),
		chUnregister: make(chan *client),
		clients:      make(map[*client]bool),
		content:      "",
	}
}
Initialized Broadcast variable
package event
import (
	"fmt"
	"github.com/gorilla/websocket"
	"github.com/skyrings/skyring-common/conf"
	"github.com/skyrings/skyring-common/tools/logger"
	"net/http"
	"time"
)
type EventBroadcaster struct {
	clients      map[*client]bool
	chBroadcast  chan string
	chRegister   chan *client
	chUnregister chan *client
	content      string
}
var (
	Broadcaster EventBroadcaster
)