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