We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea877f3 commit d92819aCopy full SHA for d92819a
resources/views/livewire/project/shared/terminal.blade.php
@@ -67,6 +67,12 @@ function initializeWebSocket() {
67
socket.onerror = (e) => {
68
console.error('WebSocket error:', e);
69
};
70
+ socket.onclose = () => {
71
+ console.log('WebSocket connection closed');
72
+ setInterval(() => {
73
+ $wire.dispatch('error', 'Connection to terminal lost, please refresh the page.');
74
+ }, 2000);
75
+ };
76
}
77
78
@@ -209,8 +215,8 @@ function checkIfProcessIsRunningAndKillIt() {
209
215
term.resize(termWidth, termHeight);
210
216
socket.send(JSON.stringify({
211
217
resize: {
212
- cols: termWidth,
213
- rows: termHeight
218
+ cols: 600,
219
+ rows: 600
214
220
221
}));
222
0 commit comments