Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
fef55a48
Commit
fef55a48
authored
5 years ago
by
Evan Feenstra
Browse files
Options
Downloads
Patches
Plain Diff
fix ws/wss for https://
parent
383198c0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/ui/files.go
+5
-1
5 additions, 1 deletion
plugins/ui/files.go
plugins/ui/src/js/main.js
+5
-1
5 additions, 1 deletion
plugins/ui/src/js/main.js
with
10 additions
and
2 deletions
plugins/ui/files.go
+
5
−
1
View file @
fef55a48
...
@@ -494,8 +494,12 @@ Vue.component('empty-icon', {
...
@@ -494,8 +494,12 @@ Vue.component('empty-icon', {
this.show()
this.show()
this.loggedIn = true
this.loggedIn = true
this.selectedTab = 'Logs'
this.selectedTab = 'Logs'
let wsProtocol = 'wss:'
if (location.protocol != 'https:') {
wsProtocol = 'ws:'
}
this.ws = new WebSocket(
this.ws = new WebSocket(
api.addToken(
'
ws
:
//'+window.location.host+'/ws')
api.addToken(ws
Protocol+'
//'+window.location.host+'/ws')
)
)
this.ws.onopen = (e) => { this.connected=true }
this.ws.onopen = (e) => { this.connected=true }
this.ws.onclose = (e) => { this.connected=false }
this.ws.onclose = (e) => { this.connected=false }
...
...
This diff is collapsed.
Click to expand it.
plugins/ui/src/js/main.js
+
5
−
1
View file @
fef55a48
...
@@ -34,8 +34,12 @@ new Vue({
...
@@ -34,8 +34,12 @@ new Vue({
this
.
show
()
this
.
show
()
this
.
loggedIn
=
true
this
.
loggedIn
=
true
this
.
selectedTab
=
'
Logs
'
this
.
selectedTab
=
'
Logs
'
let
wsProtocol
=
'
wss:
'
if
(
location
.
protocol
!=
'
https:
'
)
{
wsProtocol
=
'
ws:
'
}
this
.
ws
=
new
WebSocket
(
this
.
ws
=
new
WebSocket
(
api
.
addToken
(
'
ws
:
//
'
+
window
.
location
.
host
+
'
/ws
'
)
api
.
addToken
(
ws
Protocol
+
'
//
'
+
window
.
location
.
host
+
'
/ws
'
)
)
)
this
.
ws
.
onopen
=
(
e
)
=>
{
this
.
connected
=
true
}
this
.
ws
.
onopen
=
(
e
)
=>
{
this
.
connected
=
true
}
this
.
ws
.
onclose
=
(
e
)
=>
{
this
.
connected
=
false
}
this
.
ws
.
onclose
=
(
e
)
=>
{
this
.
connected
=
false
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment