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

Commit

Permalink
Merge pull request #1 from ZegWe/master
Browse files Browse the repository at this point in the history
fix socketio bug when using https
  • Loading branch information
Teeoo authored May 25, 2021
2 parents 37983de + 9a78a9b commit ae83dd0
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 ae83dd0

Please sign in to comment.