utils/socket/intit_channels library

Functions

initChannels(bool connected, PhoenixSocket socket, PhoenixChannel? channel, PapercupsProps props, bool canJoinConversation, Function setState) → dynamic
This function creates the necessary channels, sockets and rooms for papercups to communicate.