Refactor private channels
aocneanu opened this issue · 0 comments
aocneanu commented
Let's refactor our private channels from
'channels' => [
'privateChannel' => $this->privateChannel(),
'ioChannel' => $this->ioChannel(),
'appUpdates' => 'app-updates',
'taskChannel' => 'tasks.'.Auth::user()->id,
],
to:
'channels' => [
'private' => $this->privateChannel(),
'io' => $this->ioChannel(), // operations => io
'app-updates' => 'app-updates',
'tasks' => 'tasks.'.Auth::user()->id,
],
from websockets.js
we should import the channels
prop and use channels.private
, channels.io
etc.