adonisjs / transmit

A Server-Sent-Event module for AdonisJS
MIT License
71 stars 5 forks source link

fix: dont broadcast locally when using a transport #1

Closed adrianNEMO closed 9 months ago

adrianNEMO commented 9 months ago

❓ Type of change

📚 Description

When using a transport an event was broadcasted twice. Since it was sent to the transport and emitted locally and then emitted again when received from the transport.

Now the event will only be emitted locally when no transport is configured.

📝 Checklist

RomainLanz commented 9 months ago

Thanks!