Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
fix socketio bug when using https
Browse files Browse the repository at this point in the history
  • Loading branch information
ZegWe committed May 25, 2021
1 parent 37983de commit 9a78a9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/plugins/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import * as io from 'socket.io-client'
// transports: ['websocket'],
// query: { EIO: '3', transport: 'websocket' }
// }
let ws = (location.protocol == "http:") ? "ws://" : "wss://"
Vue.use(
new VueSocketIO({
connection: io(`ws://${location.host}`, {
connection: io(`${ws}${location.host}`, {
upgrade: true,
secure: true,
reconnection: true,
Expand Down
4 changes: 2 additions & 2 deletions src/views/plugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ import 'codemirror/theme/seti.css'
export default class Plugins extends Vue {
selectedItem = -1
plugin:{
name: string
}[] = []
name: string
}[] = []
LuaFileName = ''
LuaFileSrc = ''
Expand Down

0 comments on commit 9a78a9b

Please sign in to comment.