Lines Matching refs:channel
12 // Should not have named channel
15 // Individual channel objects can be created to avoid future lookups
16 const channel = dc.channel('test');
17 assert.ok(channel instanceof Channel);
20 assert.ok(!channel.hasSubscribers);
23 assert.strictEqual(name, channel.name);
28 channel.subscribe(subscriber);
29 assert.ok(channel.hasSubscribers);
32 assert.ok(channel instanceof Channel);
35 channel.publish(input);
38 assert.ok(channel.unsubscribe(subscriber));
39 assert.ok(!channel.hasSubscribers);
42 assert.ok(!channel.unsubscribe(subscriber));
45 channel.subscribe(null);