Webtide

Bayeux in JSON format

by Dylan SchiemannJanuary 21st, 2008

At SitePen, we’ve been working on a number of improvements to Cometd. We’ve made a nice improvement for implementing the 1.0.1 version of the Bayeux spec, making it and the associated error codes available as JSON files, so it can be pulled into any JSON compliant language! This can be used as both a programmatic and a visual reference for Bayeux protocol message composition, assertion checking on message fields, consistent error message handling, etc.


{
"handshake":{"channel":"/meta/handshake",
             "vtype_channel":"SVF",

             "version":"1.0.1",
             "vtype_version":"SVF",

             "SupportedConnectionTypes":["iframe", "flash",
                     "callback-polling","long-polling"],
             “vtype_SupportedConnectionTypes”:”MVF”,

             /* response only */
             “clientId”:”alphanumeric1234″,
             “vtype_clientId”:”SVV”,
             “rtype_clientId”:”SZ”,

…

This update will arrive in Cometd’s subversion repository this week.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Free Liberator

Leave a Reply



Copyright 2010 Comet Daily, LLC. All Rights Reserved