Topic
2 replies Latest Post - ‏2012-11-26T08:32:14Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic Samples for Pooling Adapter

‏2012-11-19T07:02:55Z |
Hi,

Im working notification. In which it should check the database periodically i.e continuously it checks values in db. In IBM architecture there is term called Pooling Adapter. but there is no samples for that. Can anyone provide, so it will helpful to accomplish notification task. Dont provide the notification sample in worklight library. I already seen that. it wont help me. Its like kind of manual push from worklight adapter. Im looking for pooling adapter.
  • AntonAleksandrov
    AntonAleksandrov
    55 Posts
    ACCEPTED ANSWER

    Re: Samples for Pooling Adapter

    ‏2012-11-26T08:12:10Z  in response to SystemAdmin
    WL.Server.createEventSource({
    name: 'PushEventSource',
    onDeviceSubscribe: 'deviceSubscribeFunc',
    onDeviceUnsubscribe: 'deviceUnsubscribeFunc',
    securityTest:'PushApplication-strong-mobile-securityTest',
    poll: {
    interval : 1, // in seconds
    onPoll : 'retrieveNotifications'
    }
    });

    function retrieveNotifications(){
    // use this function to retrieve and process notifications
    }
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Samples for Pooling Adapter

      ‏2012-11-26T08:32:14Z  in response to AntonAleksandrov
      thanks anto