mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
This commit is contained in:
parent
8ef912a624
commit
b3e67888a1
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class LogStash::Outputs::Websocket < LogStash::Outputs::Base
|
|||
|
||||
def receive(event)
|
||||
# Only publish the event to websockets if there are subscribers
|
||||
# TODO(sissel): send a patch to eventmachine to fix this.
|
||||
if @subscribers > 0
|
||||
@channel.push event.to_json
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue