Skip to content

Commit

Permalink
Send for Subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
nofik44 committed Jan 8, 2023
1 parent c2d7462 commit b654986
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/r3labs/sse/v2
module github.com/nofik44/sse/v2

go 1.13

Expand Down
5 changes: 5 additions & 0 deletions subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ func (s *Subscriber) close() {
<-s.removed
}
}

// Send individual message
func (s *Subscriber) Send(event *Event) {
s.connection <- event
}

0 comments on commit b654986

Please sign in to comment.