thibauts / node-castv2

An implementation of the Chromecast CASTV2 protocol
MIT License
768 stars 100 forks source link

Typescript support? #38

Closed JustMeDaFaq closed 8 years ago

JustMeDaFaq commented 8 years ago

Hi, is typescript support planned?

Tried it like that:

//make sure require gets defined like this:
declare var require:(moduleId:string) => any;
//trying castv2
var Client  = require('castv2-client').Client;

But im getting following error http://localhost:8100/node_modules/castv2/lib/cast_channel.proto 404 (Not Found)

Using ionic2 / angular 2

thibauts commented 8 years ago

This module is meant to be used server-side. You won't make it work client-side...