// NewLocationSocket pointer of LocationSocket
func NewLocationSocket() *LocationSocket {
	location := &LocationSocket{logger: logger.NewLogger(), connections: map[*websocket.Conn]LocationInfo{}}
	location.startPing()
	return location
}
Beispiel #2
0
// NewController pointer to Controller
func NewController() *Controller {
	return &Controller{Logger: logger.NewLogger()}
}