Current section

Files

Jump to
phoenix_socket_bert priv static phoenix_socket_bert.js
Raw

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 });
};