A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Chatroom reload/refresh

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    20
    Hi,

    i'm making a one-to-one chat room using flash on the frontend and php/mysql on the backend to log the chat, and chat requests.

    The site's admin, uses a flash program where he can see the chat requests/requested, and select a chat to view the content or begin/continue a chat.

    It's necessary to constantly update/reload the chat requested so that the admin can see if there is any new requests.
    And if the admin is chating, it also needs to reload the chat contents.

    With all this, the application becomes to slow.

    Whats the best way to be reloading contents from a database?

    Thank you

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    this approach will create server stress for reducing traffic!
    Imagine the movie is sending a request to the server: if there is new data, return immediately. If there is no new data, put the request on hold for, e.g. 20 seconds. During that time, check for new data every 3 seconds. If still no change, return a "no data" indication rather than current data

    Musicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center