Skip to content

Commit

Permalink
event/event: add Close() method
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 31, 2024
1 parent 5238002 commit 98eba7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func NewEventClient(socket string) (*EventClient, error) {
return &EventClient{conn: conn}, nil
}

// Close the underlying connection.
func (c *EventClient) Close() error {
return c.conn.Close()
}

// Low-level receive event method, should be avoided unless there is no
// alternative.
func (c *EventClient) Receive() ([]ReceivedData, error) {
Expand Down

0 comments on commit 98eba7e

Please sign in to comment.