Subject: | [Wishlist [but easy]] Handshake result in on_client callback |
Date: | Sat, 04 Mar 2017 21:58:32 +0200 |
To: | bug-Net-Async-WebSocket [...] rt.cpan.org |
From: | chohag [...] jtan.com |
It would be nice to pass information from the http/websockets
handshake which can deal with session handling, AAA, etc, to the
on_client callback. This can be achieved easlily by including @_
in the invoke_event/on_client call in on_accept (line 97).
The handshake result can still be a boolean and ignored, or as it's
now passed to the on_client event it can be associated with whatever
the user wishes.
An alternative would be to store it somehow in the object created for
the client session but I couldn't find a way to do that which fits
well in my app, and this seemed a straightforward and sane workaround.
Matthew