If I set my channel like this, I get console error 403.
note:: if ($user->status) isn't reg.
Broadcast::channel('using', function ($user) {
if($user->status=='reg'){
return $user->id;
}
});
If I set my channel like this, everything is okay.
Broadcast::channel('using', function ($user) {
if($user->status=='reg'){
return $user->id;
}else{
return 'invalid';
}
});
But I need to set my channel when $user->status isn't reg, I don't want to give any return.
Problem is if I don't give any return, I get console error 403.
Sorry for my english skill