cpunion / react-actioncable-provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Perform in OnConnected

tooleyantoine opened this issue · comments

Hi,
I can't seem to work this out but I'd like to use the perform function or this.cable.perform in the onConnected call.
Any help with this would be highly appreciated.
Thanks

Figure it out in the end.
Using refs allows you to access the perform function inside OnConnected via this.refs.yourChannel.perform.
Thanks