kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
764 stars 273 forks source link

Is your websocket implemantion a singleton? #110

Closed endeffects closed 6 years ago

endeffects commented 6 years ago

Hi,

i have two instances of different classes, both inherit from your websocket class. When i try to connect both instances i'm getting a connection error:

System.Exception: 'The socket is connecting, cannot connect again!'

Sometimes it also happens that both instances are sharing it's incoming messages from the message received event.

So i wonder: Is your websocket implementation a singleton?

endeffects commented 6 years ago

Ok this was an autofac problem.