Skip to content

Commit

Permalink
mochi-mqtt#420 initial commit for dynamically removal of the hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufcanb committed Jul 23, 2024
1 parent 82c96fa commit 83cb2e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ func (s *Server) AddHooksFromConfig(hooks []HookLoadConfig) error {
return nil
}

// RemoveHook removes a hook from the server by its ID.
func (s *Server) RemoveHook(id string) error {
return errors.New("not implemented")
}

// AddListener adds a new network listener to the server, for receiving incoming client connections.
func (s *Server) AddListener(l listeners.Listener) error {
if _, ok := s.Listeners.Get(l.ID()); ok {
Expand Down

0 comments on commit 83cb2e5

Please sign in to comment.