diff --git a/event/event.go b/event/event.go index 76df414..1603dd4 100644 --- a/event/event.go +++ b/event/event.go @@ -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) {