Lines Matching refs:channel
13 // Individual channel objects can be created to avoid future lookups
14 const channel = dc.channel(name);
15 assert.ok(channel instanceof Channel);
18 assert.ok(!channel.hasSubscribers);
21 assert.strictEqual(name, channel.name);
27 assert.ok(channel.hasSubscribers);
30 assert.ok(channel instanceof Channel);
33 channel.publish(input);
37 assert.ok(!channel.hasSubscribers);
48 // channel object itself exists.
49 channel.subscribe(subscriber);
50 channel.unsubscribe(subscriber);
51 channel.subscribe(subscriber);