Skip to content
eschnou edited this page Mar 6, 2011 · 2 revisions

The Salmon Protocol is an open, simple, standards-based solution that lets aggregators and sources unify the conversations. In OStatus, Salmon is used as the messaging transport for comments, replies, and notifications between users.

Spec: http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-salmon-00.html

unpack(body, callback)

Given a magic envelope serialized in XML, returns its JSON serialization, also taking care of removing whitespaces of the base64url encoded strings.

base64url_decode(input)

Synchronous call. Decodes a Base64url encoded string.

base64url_encode(input)

Synchronous call. Encodes a string to a Base64url format.