Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2011

    timer based 'socket' polling

    We are trying to implement a multiplayer type game under the s40 web app api, however, we are running into a hell of a lot of problems creating something akin to a streaming socket to poll for game state changes etc.

    atm, we do our polling with a timer based function with a 1 sec delay, but this then "locks" the phone (an X3-O2), make it impossible to do anything else. pumping the delay seems to help, but even at 8 sec, its still very bad, even worse it makes the interaction sluggish.

    Is there any way around this, ie: can we make this idea work, or is it too intensive to send/receive data and still have working interactions for the S40 web app platform?

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008

    Re: timer based 'socket' polling

    Hi Necrolis,

    What you are trying to do is on limits of Series 40 WebApps. You might already know, but only JavaScript that can be run on a device are methods provided by the MWL. Everything else is executed on a proxy server side. Hence polling results into a roundtrip to server and back.

    Another issue that you might not have confronted yet is session timers. If a user does not interact with web app for five minutes, session expires and web app is reloaded automatically.

    This is just my opinion, but I would recommend on using Java ME for serious game development.


Similar Threads

  1. Problem in Sending data using Symbian Socket client to the PC based socket server
    By pankaj.dubey in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-02-26, 15:09
  2. Socket based Clinet/Server architecture can not work!!
    By vampire_a in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-03-02, 01:39
  3. Socket - timer out?
    By Asheesh in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-11-22, 08:07
  4. How to perform a socket-based protocol?
    By jm_escudero in forum Symbian
    Replies: 0
    Last Post: 2003-09-18, 15:05
  5. Key Polling
    By neilf in forum Mobile Java General
    Replies: 5
    Last Post: 2003-03-14, 07:59

Posting Permissions

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