I’m trying to develop a streaming (live) datasource plugin.
All the links I’m referring to are in this gist (I am not allowed to post more than 2): https://gist.github.com/faxm0dem/54ffcdeff17003238ef7f39c0c981528
I’m basically following the plugin development guide  and the streaming datasource guide .
I came up with a working version of the basic datasource that generates a sine wave (master branch of ).
But when I try to use the
Observable type, I end up getting errors I don’t understand. You can check the code (websocket branch of ), and the errors on circleci  or gist . Here is the short version of the error I get for convenience:
Type 'Observable<DataQueryResponse>' is not assignable to type 'Promise<DataQueryResponse> | Observable<DataQueryResponse>'.