PeteGoo / Pushqa

An HTTP push messaging library with oData and Linq subscriptions for server side filtering of reactive events
MIT License
51 stars 10 forks source link

multiple subscriptions over one connection #6

Open gilesbradshaw opened 11 years ago

gilesbradshaw commented 11 years ago

Hiya my app uses one signalr connection to create multiple subscriptions to data from the server. As they go to different pages in the single page application these subscriptions change. Any idea if it would be possible to use pushqa in this kind of scenario? I want to be able to add and remove subscriptions from one connection.

PeteGoo commented 11 years ago

It is possible as long as the current list of subscriptions can be expressed as an OData query. The issue is that keeping state on the server is not a great idea with SignalR. In a web farm, your connection could change from server to server so any stored subscription info on the server would not be retained.