Description
In AWS.Net.WebSocket.Close implementation, it is documented that
-- When the user explicitly closes a web socket, we do not call
-- On_Close (this is only called when the other end closes the socket)
However, when the user explicitly closes a web socket via AWS.Net.WebSocket.Registry.Close, On_Close is called
Patch
aws-net-websocket-registry.adb.patch.txt
Different behavior in AWS.Net.WebSocket.Registry.Close implementations
On another note, calling AWS.Net.WebSocket.Registry.Close(Socket : in out Object'Class; internally calls Socket.Shutdown while calling AWS.Net.WebSocket.Registry.Close(To : Recipient; does not. Any rational on why having different behaviour ?