Wowza Community

recreate sharedobjects features with websockets

hello

as everybody now i’m moving my apps from flash to websocket and webrtc. my biggest concern now is to recreate the way sharedobjects worked (for data persistance, “rooms” management etc) with websocket. the approach i took so far is to save received datas server side on my websocket php engine (im currenty using ratchet php). so for example, i store chat datas and other stuff in a php array server side from within my ratchet server functions. one of my current problem is that contrarly to sharedobjects, that delete datas when the room “dies”, datas stored in this php objects never die, and i dont really see how i can handle this automatically…does anybody went through the same problems, which workaround could you advise ? thank you !