Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 533f8a5

Browse files
committed
wip
1 parent 13dc4bd commit 533f8a5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resources/views/dashboard.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
103103
methods: {
104104
connect() {
105-
this.pusher = new Pusher(this.app.appKey, {
105+
this.pusher = new Pusher(this.app.key, {
106106
wsHost: window.location.hostname,
107107
wsPort: this.port,
108108
disableStats: true,
@@ -148,7 +148,7 @@
148148
},
149149
150150
subscribeToChannel(channel) {
151-
this.pusher.subscribe('{{ \BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Dashboard::LOG_CHANNEL_PREFIX }}' + channel)
151+
this.pusher.subscribe('{{ \BeyondCode\LaravelWebSockets\Dashboard\DashboardLogger::LOG_CHANNEL_PREFIX }}' + channel)
152152
.bind('log-message', (data) => {
153153
this.logs.push(data);
154154
});

src/WebSockets/Channels/PresenceChannel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public function unsubscribe(ConnectionInterface $connection)
4444
{
4545
parent::unsubscribe($connection);
4646

47+
if (! isset($this->users[$connection->socketId])) {
48+
return;
49+
}
50+
4751
$this->broadcastToOthers($connection, [
4852
'event' => 'pusher_internal:member_removed',
4953
'channel' => $this->channelName,

0 commit comments

Comments
 (0)