statianzo/Fleck — Issue #28: Invoke start callback after request is parsed
Author: davidfowl
Created: 2012-01-02 16:44:58+00:00
State: open

I have a scenario where I need the connection info in the start callback. Right now connection info is always null since the thing is invoked.

var wss = new WebSocketServer("ws://localhost:8181");
wss.Start(socket =>
{
if (socket.ConnectionInfo == null)
{
Console.WriteLine("Connection info is null here");
}
});

The above code will always print "Connection info is null here". I've fixed this in my fork but haven't spent much time running tests as I wanted to run it by you first. The change is pretty small:

https://github.com/davidfowl/Fleck/commit/2c391eca626cd5ca8c8d40c52ded2dc7e9d312ec

Let me know if you need me to do anything else, I'll be happy to send a pull request.