Fds is a member of Upgrader, which makes it hard to stub out Upgrader
with an interface for testing. Embed Fds in Upgrader to fix this.
Users can then write code like
ln, err := upg.Listen("foo", "bar")
and use a single interface. Existing code will continue to work.
Fds is a member of Upgrader, which makes it hard to stub out Upgrader with an interface for testing. Embed Fds in Upgrader to fix this. Users can then write code like
and use a single interface. Existing code will continue to work.