Converted server to Typescript

This commit is contained in:
Thomas
2021-01-28 17:49:49 +01:00
parent 1149f17b20
commit cc6a474a88
29 changed files with 655 additions and 1830 deletions

View File

@@ -1,7 +1,8 @@
import { ToastProgrammatic as Toast } from 'buefy'
// const connection = new WebSocket('ws://localhost:3000/socket')
const connection = new WebSocket('wss://tronio.gltronic.ovh/socket')
const server = process.env.SERVER || 'localhost:3000'
const connection = new WebSocket('ws://' + server + '/socket')
// const connection = new WebSocket('wss://tronio.gltronic.ovh/socket')
export default function createSocketPlugin () {
return store => {