How to use the ng-chat.ParticipantResponse function in ng-chat

To help you get started, we’ve selected a few ng-chat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rpaschoal / ng-chat / demo / offline_bot / src / app / demo-adapter.ts View on Github external
return of(DemoAdapter.mockedParticipants.map(user => {
            let participantResponse = new ParticipantResponse();

            participantResponse.participant = user;
            participantResponse.metadata = {
                totalUnreadMessages: Math.floor(Math.random() * 10)
            }

            return participantResponse;
        }));
    }

ng-chat

A simple facebook/linkedin lookalike chat module for Angular applications.

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis