trading header for ratchet.js