summaryrefslogtreecommitdiff
path: root/dispatch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch.ts')
-rw-r--r--dispatch.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/dispatch.ts b/dispatch.ts
index 859792b74..c2a7a6ef7 100644
--- a/dispatch.ts
+++ b/dispatch.ts
@@ -26,10 +26,7 @@ export function pub(channel: string, payload: Uint8Array): null | ArrayBuffer {
// Internal version of "pub".
// TODO add internal version of "sub"
// TODO rename to pubInternal()
-export function sendMsgFromObject(
- channel: string,
- obj: pb.IMsg
-): null | pb.Msg {
+export function sendMsg(channel: string, obj: pb.IMsg): null | pb.Msg {
const msg = pb.Msg.fromObject(obj);
const ui8 = pb.Msg.encode(msg).finish();
const resBuf = pub(channel, ui8);