Use pub/sub instead of send/recv

This commit is contained in:
Ryan Dahl 2018-06-11 19:18:53 +02:00
parent 9590c87c62
commit 2443f7efee
6 changed files with 40 additions and 40 deletions

View file

@ -10,8 +10,8 @@ function assert(cond) {
if (!cond) throw Error("mock_runtime.js assert failed");
}
function recvabc() {
deno_recv((msg) => {
function subabc() {
deno_sub((msg) => {
assert(msg instanceof ArrayBuffer);
assert(msg.byteLength === 3);
});