File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ declare namespace AVS {
2+ type Directive = AVS . SpeechRecognizer . ExpectSpeechDirective | AVS . AudioPlayer . PlayDirective ;
3+ }
Original file line number Diff line number Diff line change 11// https://developer.amazon.com/docs/alexa-voice-service/manage-http2-connection.html
22import * as http2 from "http2" ;
3+ import { Observable } from "rxjs/Observable" ;
34
45import { API_VERSION } from "./constants/general" ;
56
67export default class Directives {
8+ private directive$ : Observable < AVS . Directive > ;
9+
710 constructor ( private readonly client : http2 . ClientHttp2Session ) { }
811
912 public connect ( accessToken : string ) : Promise < void > {
@@ -39,4 +42,8 @@ export default class Directives {
3942 req . end ( ) ;
4043 } ) ;
4144 }
45+
46+ public get Directive$ ( ) : Observable < AVS . Directive > {
47+ return this . directive$ ;
48+ }
4249}
You can’t perform that action at this time.
0 commit comments