thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
646 stars 92 forks source link

Cannot send messages on custom namespace #77

Closed wesleyyee closed 6 years ago

wesleyyee commented 6 years ago

I'm currently trying to create a standard controller that sends messages on a custom namespace but my receiver is not receiving anything. Trying to do something like this:

const Controller = require('castv2-client').RequestResponseController;
const channel = client.createController(Controller, 'urn:x-cast:some.custom.channel', 'JSON');
channel.send({ type: 'message', data: { foo: 'bar' } });