Skip to content

Commit b654986

Browse files
committed
Send for Subscriber
1 parent c2d7462 commit b654986

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/r3labs/sse/v2
1+
module github.com/nofik44/sse/v2
22

33
go 1.13
44

subscriber.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ func (s *Subscriber) close() {
2222
<-s.removed
2323
}
2424
}
25+
26+
// Send individual message
27+
func (s *Subscriber) Send(event *Event) {
28+
s.connection <- event
29+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy