rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

Recieve message function? #146

Closed inzamam-idrees closed 4 years ago

inzamam-idrees commented 4 years ago

How can I recieve message from server?

rpaschoal commented 4 years ago

Hi @inzamam-idrees ,

Please check the example projects here on these repositories:

https://github.com/rpaschoal/ng-chat-netcoreapp https://github.com/rpaschoal/ng-chat-nodejs

Hope this help, cheers!

inzamam-idrees commented 4 years ago

Hi @rpaschoal,

Thanks for reply to me I have to implement the chat feature in my project. This package is very useful to me and I already read your mention examples but my problem is different.

I am not using 'ng-socket-io' package I have to use pusher to recieve messages and when user1 send message to user2 then user2 recieve the notification using the channel but I want to know how I can recieve message in the chatbox of ng-chat.

anouar1991 commented 4 years ago

Hi @inzamam-idrees, Most probably you need to understand how pusher-angular works and implement a ChatAdapter that uses pusher-angular instead of ng-socket-io. Read section ( Implement your ChatAdapter ) Here's : pusher-angular Cheers