J0 / phoenix_gen_socket_client

Socket client behaviour for phoenix channels
MIT License
232 stars 48 forks source link

Sending messages to channel from outside the behaviour #71

Open Arsenalist opened 4 months ago

Arsenalist commented 4 months ago

Based on the example, the only place you can send messages to a channel is from inside the behaviour. Can I send messages from outside the behaviour? For example, connecting to a channel and then sending the message to that channel from my controller module?

Is that possible?