mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
websocket: fix a bug on emit on specific room when it doesn't exist it sends to all connections caused by a third-party contributor's PR...
Former-commit-id: de6fddadd7cef8537ad1d1aff1acd991e4cf99cf
This commit is contained in:
@@ -511,6 +511,7 @@ func (c *connection) To(to string) Emitter {
|
||||
} else if to == c.id {
|
||||
return c.self
|
||||
}
|
||||
|
||||
// is an emitter to another client/connection
|
||||
return newEmitter(c, to)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user