val-bubbleflat / laravel-echo-ios

A wrapper for Laravel Echo in Swift
MIT License
22 stars 17 forks source link

Emit Message #3

Closed maniarali closed 6 years ago

maniarali commented 6 years ago

There is option of listening, but there is no documentation about emitting. Sorry I am new to Larvel Echo, and I don't know how to emit a message. I am implementing Chat Through Larvel echo ios. I am already able to communicate on Website, and listen those message on iOS. but don't know how to emit message. Thanks for any help

val-bubbleflat commented 6 years ago

Hi Laravel Echo is not responsible for sending messages, your backend is. I think you need to send the message throught your api, and dispatch an event in your backend. Val

maniarali commented 6 years ago

Thanks for the reply. I have send message using API. and listening through Larvel Echo.

nielsezeka commented 5 years ago

@maniarali Broadcast Whisper() can be use to send data to another client, but their was some tricks. I reported and note in: https://github.com/val-bubbleflat/laravel-echo-ios/issues/9 Hope it help!