Hello,
I do not think the issue comes from Tweetinvi but it is more likely that Twitter restricts the usage of multiple public streams with the same IP.
The thing is that this behavior was mentioned in their documentation, but it is no longer there.
The only statement I have been able to find in their new documentation is the following :
Connections
Each account may create only one standing connection to the public endpoints, and connecting to a public stream more than once with the same account credentials will cause the oldest connection to be disconnected.
Clients which make excessive connection attempts (both successful and unsuccessful) run the risk of having their IP automatically banned.
Source
From this statement your code should work (but we have to remember that the Twitter doc misses lots of information), so I am going to investigate this.
So before we even start could you change your
Cheers,
Linvi
I do not think the issue comes from Tweetinvi but it is more likely that Twitter restricts the usage of multiple public streams with the same IP.
The thing is that this behavior was mentioned in their documentation, but it is no longer there.
The only statement I have been able to find in their new documentation is the following :
Connections
Each account may create only one standing connection to the public endpoints, and connecting to a public stream more than once with the same account credentials will cause the oldest connection to be disconnected.
Clients which make excessive connection attempts (both successful and unsuccessful) run the risk of having their IP automatically banned.
Source
From this statement your code should work (but we have to remember that the Twitter doc misses lots of information), so I am going to investigate this.
So before we even start could you change your
StreamStopped
event and let me know what you information you get from this.stream.StreamStopped += (sender, args) => { if (args.Exception != null) { Console.WriteLine(args.Exception); } if (args.DisconnectMessage != null) { Console.WriteLine(args.DisconnectMessage); } };
Linvi