Skip to content

Fix websocket always in error state#923

Closed
notAreYouScared wants to merge 1 commit intomainfrom
charles/fix-banner
Closed

Fix websocket always in error state#923
notAreYouScared wants to merge 1 commit intomainfrom
charles/fix-banner

Conversation

@notAreYouScared
Copy link
Copy Markdown
Member

No description provided.

Comment on lines +120 to +127
$alerts = session()->get('alert-banners', []);
$alerts[] = [
'title' => 'Could not connect to websocket!',
'body' => 'Check your browser console for more details.',
'status' => 'danger',
];

session()->flash('alert-banners', $alerts);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$alerts = session()->get('alert-banners', []);
$alerts[] = [
'title' => 'Could not connect to websocket!',
'body' => 'Check your browser console for more details.',
'status' => 'danger',
];
session()->flash('alert-banners', $alerts);
AlertBanner::make()
->title('Could not connect to websocket!')
->body('Check your browser console for more details.')
->danger()
->send();

@github-actions github-actions Bot locked and limited conversation to collaborators Jan 17, 2025
@notAreYouScared notAreYouScared deleted the charles/fix-banner branch January 17, 2025 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants