react-native-tv-ws-protocol
Version:
wrap websocket protocol to control the smart TVs
19 lines (18 loc) • 527 B
TypeScript
import { NativeEventEmitter } from 'react-native';
declare class TvWsProtocol {
TvWsProtocol: any;
onmessage: any;
onconnect: any;
ondisconnect: any;
onerror: any;
nativeEvent: NativeEventEmitter;
eventSubscriptions: Array<any>;
constructor();
initListener: () => void;
create: (uri: string, options: any) => void;
send: (message: string) => void;
isConnected: () => any;
close: () => void;
error: (message: any) => void;
}
export default TvWsProtocol;