diff options
| author | Yingchen Xue <yingchenxue@qq.com> | 2018-06-05 16:10:27 +0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-05 10:10:27 +0200 |
| commit | 78124cd45f5b5efe1f06e82554ff09273b75b050 (patch) | |
| tree | 646f8d233b5827d4b790d4f97ddce977eb1870c5 /dispatch.ts | |
| parent | 8094c7421b50d3cbbc0eace6d376d7ed31b3cfa1 (diff) | |
Rename sendMsg to pubInternal (#136)
Diffstat (limited to 'dispatch.ts')
| -rw-r--r-- | dispatch.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
