Skip to content

Commit 445d0ea

Browse files
committed
Fix upload socket connection
1 parent 46117af commit 445d0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/server/files/add.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
var newFileContents;
6565
6666
@can('upload-files', $server)
67-
var client = new BinaryClient('wss://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', {
67+
var client = new BinaryClient('{{ $node->scheme === 'https' ? 'wss' : 'ws' }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', {
6868
chunkSize: 40960
6969
});
7070
// Wait for connection to BinaryJS server

0 commit comments

Comments
 (0)