-
-
Save AlexDaSoul/c7c67a132689281f3a554bd86890cf32 to your computer and use it in GitHub Desktop.
nga-30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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