sub.GetFilters()

This commit is contained in:
fiatjaf 2022-11-19 07:19:36 -03:00
parent b2885d57cd
commit 8bc91a894c
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -19,6 +19,10 @@ type EventMessage struct {
Relay string
}
func (sub Subscription) GetFilters() Filters {
return sub.filters
}
func (sub Subscription) Unsub() {
sub.conn.WriteJSON([]interface{}{"CLOSE", sub.id})