Re: [Jmap] Fwd: New Version Notification for draft-murchison-jmap-websocket-00.txt

Ken Murchison <murch@fastmail.com> Wed, 30 May 2018 13:31 UTC

Return-Path: <murch@fastmail.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F0D412E8A1 for <jmap@ietfa.amsl.com>; Wed, 30 May 2018 06:31:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.com header.b=m0oCHOei; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=MkwZorco
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aNo8NIRsMBLc for <jmap@ietfa.amsl.com>; Wed, 30 May 2018 06:31:29 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B09712E898 for <jmap@ietf.org>; Wed, 30 May 2018 06:31:12 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 535EC215AC for <jmap@ietf.org>; Wed, 30 May 2018 09:31:11 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 30 May 2018 09:31:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=FNdOVKChzSCUIvaw3Ex9mvkSSEizBjBOyJCxpXaXpHg=; b=m0oCHOei ZNNLT//yu4aLM3p48Mb2RM/DDd+djps8ie+6Q4tczQBhhUL9LgtYAF5jA5zXMxYL XdPhZqGlnOZgBE+3Y2mUCPSFCilsAbKCaBvod+LyQ8ztePqYpYQ0cN8/mLf4bU7a ICCmze8TmUFyjQ//7+sGO2po7lw3Qp30Bqre5AswWn2x2zhx+w3kRHFaq87N37/d z2f5XJsQuO2wdcxIMNdMMVQ/+m24gWaZOuUKVdSuo9DazXrO+Pfwo4SLK4LNNMTV Y4tyfoAairYJkPjXogsfzcd5Hv3BZMHX7QkyMDRTKUgNAGmPaDBVt29mjKWXNUG9 7LRP6MzW6KRDgQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=FNdOVKChzSCUIvaw3Ex9mvkSSEizB jBOyJCxpXaXpHg=; b=MkwZorco4E0l8SxHNiX5kvn/a6t4vMohmWhUiw90TMaQo bgt1PHQmE3v4qtPz26TpC4+xHvSltnBuSYb2GAqP+kUIsX1dIynIljQcQQbZRUAc 4U2NvmqcrhJ0sCKCNyWo3/1lzQfb+M8bajLxRbDt3w37rB/Ja3MHjAKj3re2z1uK JYadGUyEGCP4z4DdfOlZpm65NAUzPSigXHV2vAUU48nge1uZXpmOx6r+GbvB0dcf gbVP/0WOXnmxpGzFD1XpEwnCKfjnNpxM+aAj4wOdLYU7g99rbksTqk6e62B3gCPz yLCNrhPuAmvFSTHyZjBw3s/kkoOYHIbZlXYWUM+0Q==
X-ME-Proxy: <xmx:n6cOW6e1f0f8E_3XW34m_xic6dsiWxYZtr7WwmCLAByBN85nmQm7gg>
X-ME-Proxy: <xmx:n6cOW0ZY0ao22ZwWqjkuQf7Vl7MEqs_Wh5piZDj_DQLNMWG09QQcHw>
X-ME-Proxy: <xmx:n6cOW9XC0wxa5WosIjAQXLbtRN5FnTJRVHWMbtXaDXgXwBTq8k0YYg>
X-ME-Proxy: <xmx:n6cOW2jQV_M8C7Z_gTl9mEST7F_5j_xY8x_Xw_BsP9ampsTzbSQjKg>
X-ME-Proxy: <xmx:n6cOW7UXGW_hkXuTa9omv4EH0IAUL-3wbzjMOhnuU3AoPIXAlUHzDg>
X-ME-Proxy: <xmx:n6cOW5qNoFi6ENZKeqXP5fa3ZA-8IceBP3-fot8lis_ZwE3xGGzhJg>
X-ME-Sender: <xms:n6cOW6Jnv5u3qwgBivNh_C5YvzY38nT4_xhKpe5bS1wX3uUvTXmujg>
Received: from localhost.localdomain (cpe-74-77-85-250.buffalo.res.rr.com [74.77.85.250]) by mail.messagingengine.com (Postfix) with ESMTPA id D6C931028C for <jmap@ietf.org>; Wed, 30 May 2018 09:31:10 -0400 (EDT)
To: jmap@ietf.org
References: <42d9cdbc-338b-125b-4164-76dda81c81fa@fastmailteam.com> <152762434119.30187.891281157139219165.idtracker@ietfa.amsl.com> <113acf52-6b03-4914-a0f2-7fdf08b1cf98@sloti22d1t06>
From: Ken Murchison <murch@fastmail.com>
Organization: FastMail US LLC
Message-ID: <305ecac4-d5cb-2935-a1ef-e3dcc6823e0f@fastmail.com>
Date: Wed, 30 May 2018 09:31:10 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <113acf52-6b03-4914-a0f2-7fdf08b1cf98@sloti22d1t06>
Content-Type: multipart/mixed; boundary="------------87FFDB43C94D7BB5A384DFF3"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/4okaoTXMpawuZHlDUtV88E17Giw>
Subject: Re: [Jmap] Fwd: New Version Notification for draft-murchison-jmap-websocket-00.txt
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2018 13:31:32 -0000


On 05/29/2018 10:53 PM, Neil Jenkins wrote:
> Looks good.. A few thoughts:
>
>   * This should definitely be advertised in the capabilities object,
>     as per any JMAP extensions.
>

OK.  For now, I'll put the extension in the cyrusimap.org namespace.


>   * Should the server be allowed to advertise a different URL for a
>     websockets API connection as opposed to an HTTP one?
>

Sure.  I'll add a 'wsUrl' String to the capabilities.


>   * Are responses guaranteed to be in the same order as requests?
>     (Probably not; if you want methods to execute sequentially you
>     should bundle them in a single request object, but then how do you
>     correlate the response objects to the request objects? Probably
>     need to add an id property to the request/response object.)
>

I had intended that they would be in the same order, but I suppose out 
of order could be allowed if deemed necessary.


>   * I think being able to receive push events over the single
>     websocket connection makes sense, but that means you'd have to be
>     able to distinguish the different message types you might receive
>     (API response or push).
>

Can't the client distinguish between a Response object and a StateChange 
object?  If we need a better way, do you have a recommendation?


>   * What changes are required to rate limiting options for the server?
>     These probably need to be advertised in the capabilities object
>     for this extension.
>

Are you thinking that we need separate maxSizeRequest, 
maxConcurrentRequests, maxCallsInRequest, maxObjectsInGet, and 
maxObjectsInSet for the WebSocket connection?

-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC