-
Notifications
You must be signed in to change notification settings - Fork 28
Created a Fleck implementation of Owin.WebSocket #20
base: master
Are you sure you want to change the base?
Conversation
…from Owin for consumers.
|
First I want to complement you on integrating Fleck, really smooth move. Second, I feel this implementation would be better if it exposed some of the functionality that Fleck provides. For instance the _connectionInfo and _connection are private and not exposed to the implementing class. This makes caching connections and sending to everyone / groups difficult. I would strongly suggest exposing these. Maybe there is a reason you did not do this ? Third, I downloaded the sample and exposed _connection myself. This resulted in some slight code smell in my OnMessage method. Notice how I am sending the sending client two messages. Once via the connection list and again in the return echo. I guess the obvious answer would be to use one or the other. That said, is there any reason I should still be using the inherited Send method over the send method in Fleck's IWebsocketConnection ? If not, should we even include the inherited Send Method as it only adds confusion ? |
|
Hey Nicholas, Sorry for the delay in responding. All of the connection data is actually exposed explicitly via interface: Here is a demo of how it could be used to keep a list of connections without using a static list: Did that answer your question? Thanks, |
|
Hey guys, I'll try and get to this sometime this week. Sorry for the delay. |
|
👍 I'm interested in how this turns out... My work uses Owin a lot, and recently has been pushing to use websockets with Fleck, though we haven't really implemented them. |
|
@bryceg If this project is not a good fit the the repository, then I can create a separate one. Please let me know! |
No description provided.