From 78124cd45f5b5efe1f06e82554ff09273b75b050 Mon Sep 17 00:00:00 2001 From: Yingchen Xue Date: Tue, 5 Jun 2018 16:10:27 +0800 Subject: Rename sendMsg to pubInternal (#136) --- dispatch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dispatch.ts') diff --git a/dispatch.ts b/dispatch.ts index 01bd58bed..1ed6af71e 100644 --- a/dispatch.ts +++ b/dispatch.ts @@ -41,8 +41,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 sendMsg(channel: string, obj: pb.IMsg): null | pb.Msg { +export function pubInternal(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); -- cgit v1.2.3