mendsley/gojws — pull request #2 by boivie (2014-11-12 22:08:52+00:00)
Title: Add support for returning header

The caller might need to access header elements, such as 'typ' or
'cty', in order to properly validate and parse the payload.

A new function is added that returns the header in addition to the
payload.