[AWS] AWS.Server.Push.Client_Gone

Joseph Montanez jmontanez at gorilla3d.com
Thu Aug 11 22:44:50 CEST 2011


When you use Send you have the option of specifying the function for
Client_Gone. When you Send_To, you don't. However it should raise an
exception of Client_Gone. It's never raised the exception for me which
is weird. However I am trying to figure out how know when I client
disconnect if I am not using Send ()

So I tried:

              begin
                 Chat.Send_To (
                               Server       => SP,
                               Client_Id    => Connection_Id,
                               Data         => Data,
                               Content_Type => "text/html"
                              );
                 --  Chrome requires us send a zero byte response
                 --  To end the chunked data stream correctly...
                 Chat.Send_To (
                               Server       => SP,
                               Client_Id    => Connection_Id,
                               Data         => To_Unbounded_String (""),
                               Content_Type => "text/html"
                              );
                 --  Force a disconnect, to allow them to reconnect for other
                 --  messages
              exception when AWS.Server.Push.Client_Gone =>
                    Clients.Delete (Position => Session_Index);
              end;

How I end up getting:
-----------------------------------------------
invalid prefix in selected component "PUSH"
exception name expected
-----------------------------------------------


--
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy


More information about the AWS mailing list