Intercept GetSharedObject() on Server

Discussions relating to Flex real-time messaging

Intercept GetSharedObject() on Server

Postby neilo » Thu Jan 31, 2008 11:05 pm

How would one go about intercepting a client request of SharedObject.getRemote() from the server side? I have two things in mind: 1.) deny the request, or 2.) return an instance of a custom sub-class of FluorineFx.Messaging.Rtmp.SO.SharedObject. With the latter would the client simply have to have made a call to registerClassAlias() in order for the appropriate ActionScript class to be instantiated?

Any info would be great, even if just pointing to an existing example/sample, thanks!
Last edited by neilo on Thu Jan 31, 2008 11:50 pm, edited 1 time in total.
User avatar
neilo
 
Posts: 7
Joined: Sat Jan 26, 2008 8:47 pm
Location: Puget Sound, WA

Re: Intercept GetSharedObject() on Server

Postby neilo » Thu Jan 31, 2008 11:42 pm

I haven't tried it yet, but I think I see how to do it: my ApplicationAdapter sub-class will need to implement ISharedObjectService. From there I'm still fuzzy on the details, because all ApplicationAdapter does is use a scope-based SharedObjectService which sounds like something that'd be in the configuration files somewhere.
User avatar
neilo
 
Posts: 7
Joined: Sat Jan 26, 2008 8:47 pm
Location: Puget Sound, WA

Re: Intercept GetSharedObject() on Server

Postby neilo » Sat Feb 09, 2008 7:54 pm

I just figured out how to do deny the creation of shared objects based on their name:

http://www.flashsecrets.com/2008/02/restrict-sharedobject-name.html

Hope this helps some people!
User avatar
neilo
 
Posts: 7
Joined: Sat Jan 26, 2008 8:47 pm
Location: Puget Sound, WA


Return to FluorineFx Messaging

Who is online

Users browsing this forum: No registered users and 1 guest