Skip to content

Instantly share code, notes, and snippets.

@AlexDaSoul
Created January 19, 2020 15:23
Show Gist options
  • Save AlexDaSoul/c7c67a132689281f3a554bd86890cf32 to your computer and use it in GitHub Desktop.
Save AlexDaSoul/c7c67a132689281f3a554bd86890cf32 to your computer and use it in GitHub Desktop.
nga-30
@Injectable({
providedIn: 'root',
})
export class ChatGrpcService {
constructor(private client: ChatServicePromiseClient) {
}
public getChat(): Observable<ChatList.AsObject> {
const req = new Stub();
const meta: Metadata = grpcJwtMetadata();
return grpcStream<ChatList.AsObject>(this.client.getChat(req, meta));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment