decodeFrame

Parses a frame from the wire.

Throws HatangException (decode_error) when raw is not a JSON object; unknown frame types decode to UnknownFrame.