romshark / webwire-go

A transport independent asynchronous duplex messaging library for Go
MIT License
216 stars 9 forks source link

Listing all connections of a session #20

Closed KernelPryanic closed 6 years ago

KernelPryanic commented 6 years ago

There's currently no way to list all connections (aka client agents) belonging to a certain session. The only function that comes close to solving this issue is SessionRegistry.SessionConnections though it returns only the number of connections of the given session. Wouldn't it make more sense to return []*Client instead?

romshark commented 6 years ago

As of commit #8f789c0 server.SessionConnections returns a list of client agents