Re: CfC: Messaging FPWD

Hi,
before moving to FPWD I'd suggest to extend the subscription method with some basic filters. The rationale is that a generic subscription (e.g. on MessagingManager.EMAIL_TYPE) may generate a big number of callback invocations, forcing each application to implement its own filters.

My proposal for extending the subscribe method is:

int subscribe (in MessagingFilter filter, in OnIncomingMessage messageEventCB, in optional ErrorCallback errorCB);

interface MessagingFilter {
    attribute unsigned short messagingType;
    attribute DOMString from;
    attribute DOMString to;
    attribute DOMString body;
};

As you can see the basic use case (filtering on message type) is still supported, but it is now possible to receive callbacks only when a particular condition on sender and/or receiver and/or body is verified (eg. an email sent by "public-device-apis@w3.org").


Marco Marengo



Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.

Received on Friday, 12 March 2010 11:22:32 UTC