Packages
A serializer for Phoenix.Socket that encodes and decodes messages using BERT (Binary ERlang Term)
Current section
Files
Jump to
Current section
Files
priv/static/phoenix_socket_bert.js
"use strict";
import { decode as bertDecode } from "./bert";
export const decode = (rawPayload, callback) => {
let [join_ref, ref, topic, event, payload] = bertDecode(rawPayload);
return callback({ join_ref, ref, topic, event, payload });
};