Comments (12)
Ok, then what would you need specifically from the library?
from websocket-manager.
Hi!
At this moment it is not possible, you would need something like groups, which are not implemented right now.
If you are interested in contributing, we can surely work together on this feature.
Thanks!
from websocket-manager.
Thanks @radu-matei I will try to work on it... ;)
from websocket-manager.
Let's keep this open and discuss what you would like to implement here :)
from websocket-manager.
Do you have something specific in mind to start with?
from websocket-manager.
Hi @radu-matei, not in this moment... We are migrating our App to ASP.NET Core, and in this moment we are researching about all our requirements... ;)
from websocket-manager.
One functionality in particular we need is ability to filter the message based on parameter to different clients. For ex:
- Assume multiple clients are connected which belong to different ogranization, they pass orgid when they registerfor websocket message.
- Only messages which are sent for an organization should be sent to the client which are registered based on the orgid
Is this possible ? Thx
Regards
Satya
from websocket-manager.
I created a pull request that should allow for filtering connections based on anything. Find it here:
https://github.com/radu-matei/websocket-manager/pull/32/commits
It also allows for adding properties and speeds up sending messages.
from websocket-manager.
Hello! I will try to implement chat rooms, any ideas about how should it be?? I thought of a concurrent dictionary. The dictionary would have the ID of the chat room as the key and a list of connection IDs.
from websocket-manager.
Hi,
Should we instantiate one SocketManager per room, so each room has its own _sockets Dictionary?
Are we having one SocketManager during application lifetime?
Are we having one SocketHandler per client request?
from websocket-manager.
Hi @dotrung! answering you questions
1.- No, you only need one SocketManager.
2.- You should have just one during life time.
3.- AFAIK, no, you only have one socket handler that will be instantiated by the middleware.
from websocket-manager.
Hi @miker1423
- Does it have affect to the scalability?
- After reading the issues/39, I though we only have one SocketManager for application lifetime. Actually we have multiple SocketManager, one per SocketHandler, which in turn has application lifetime. Thus, SocketManager has application lifetime.
- Is this issue solved? I see the middleware has
Group
feature. - Should an endpoint a group? Sockets are being grouped by endpoint, and then in each group, they splitted into smaller groups.
from websocket-manager.
Related Issues (20)
- Unnecessary assignment (?) HOT 4
- Thread safety
- how to access HttpContext etc. in the sub class inherits from WebSocketHandler? HOT 3
- Unable to use send/receive complex types that are not part of the libarary HOT 4
- json format to sent message HOT 2
- dependency injection in the subclass inherits from WebsocketHandler HOT 3
- Inject dependency rather than using new
- json error in mvc sample HOT 1
- How to call server in c# client
- Cannot inject dependencies in the sockethandler or use servicelocator to do so HOT 1
- WebSocketHandler and WebSocketConnectionManager lifetime HOT 1
- The remote party closed the WebSocket connection without completing the close handshake. HOT 2
- Build string to send in socket to server
- NuGet package upgrade
- When hanlder ReceiveAsync method is doing something take a long time,the websocket cannot receive any message
- I fail to run WebTerm HOT 1
- NuGet update
- How to hosting Chat application in IIS HOT 2
- Suggestions: ControllerMethodInvocationStrategy with Async Tasks and ASP.NET Core 3.x Endpoints
- System.OutOfMemoryException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocket-manager.