uncomment the ws stuff
This commit is contained in:
parent
c92d86519c
commit
bf6e1155c5
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
|
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
|
||||||
// import { Socket } from 'phoenix'
|
import { Socket } from 'phoenix'
|
||||||
|
|
||||||
const api = {
|
const api = {
|
||||||
state: {
|
state: {
|
||||||
|
@ -58,10 +58,10 @@ const api = {
|
||||||
initializeSocket (store) {
|
initializeSocket (store) {
|
||||||
// Set up websocket connection
|
// Set up websocket connection
|
||||||
if (!store.state.chatDisabled) {
|
if (!store.state.chatDisabled) {
|
||||||
// const token = store.state.wsToken
|
const token = store.state.wsToken
|
||||||
// const socket = new Socket('/socket', {params: {token}})
|
const socket = new Socket('/socket', { params: { token } })
|
||||||
// socket.connect()
|
socket.connect()
|
||||||
// store.dispatch('initializeChat', socket)
|
store.dispatch('initializeChat', socket)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
disableChat (store) {
|
disableChat (store) {
|
||||||
|
|
Loading…
Reference in a new issue