Reason being, I'm trying to develop a whiteboard application and I don't want it to send all of the information to everyone every time it changes. Therefore, I don't want to use a RoomVariable. However, I do need to store and send it to new users that enter the room so that they can see what everyone else sees.
I tried adding the following just after the class, before my handleClientRequest function.
Code: Select all
Map<String, ISFSObject> segments = new HashMap<String, ISFSObject>();
Afterwards, I sent an extension request 3 times. The first time, I stored some data in segments and traced it out to verify that it worked. On my 3rd request, I ran the same trace and it was empty.
Also, from within' another class extending BaseClientRequestHandler, how can I call functions located in the RoomExtension?