Hi,
Im trying to have a pop up window that is connected to a different room.
I know i can throw mxml in that pop up window but I would like know if there is a way to use actionscript to connect and pass that session to whatever components that need it.
So for example if i wanted a muli user chat happening in room 1 while a private chat is happening in room 2 what would be the best way using AS.
hope this makes sence
thanks.
...russ
Views
Replies
Total Likes
Hi Russ,
To pass a message from an user in one room to an user connected in another room, you need to use your dev server and server to server APIs to handle that communication.
For e.g. in your case
User A in Room 1 sends a message asking to pop up a window. Your dev server through webhooks using our Server 2 Server APIs receives that message.
The Dev server will then publish an Item again using Server 2 Server APIs in room 2 asking User B (in Room 2) to pop up something.
User B in Room 2 receives it and pops up the window.
Hope this helps
Thanks
Hironmay Basu
Views
Replies
Total Likes
Thanks.
What I was thinking was more like:
User A is in the same room as User B
User A sends a private messae to User B
PopUP Brings User A and User B into another room within that window.
Right now my popup has all the mxml to keep the session in a different room.
Its slow so i wanted to know if i can do it using as so i can log somone in quickly then pop the window.
thanks Hironmay,
...russ
Views
Replies
Total Likes
Hi Russ,
Yes, you can do these too with server to server APIs if you are using external authentication or even otherwise also.
When A sends a pm to B, and lets say B accepts. Then both enter a new room. And you can pop up an dialog in your main window since an user can be in multiple rooms in the same app, just see MultipleSessions example in sampleApps folder.
However, you will have to create a new connectsessin/connectSessioncontainer if you want to remain logged in both rooms.
The MultipleSessions example I believe have chats etc in different room within the same app window.
Hope this helps
Thanks
Hironmay Basu
Views
Replies
Total Likes
Thanks that sounds like what I need.
I'll dig into it now. What I was also thinking about was creating two auth keys one for each room. It would be great to log somone in behind the senes and launch the pop up with chat connected to the second room. my current solution works but it real slow cause its loging in then launching the window.
i'll let you know what i turn up.
thanks,
...russ
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies