Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Revert "Reflect change made in POSTGRES - using partition PGCDC refle…
Browse files Browse the repository at this point in the history
…ct with partition's table name" (#27)

This reverts commit 4c9e673.
  • Loading branch information
Martichou committed Jun 22, 2021
1 parent 3962125 commit ce8fe78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mixins/graphWebSocket.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import moment from 'moment'

const ws = {
methods: {
initWS (table, vm) {
if (vm.getScale(vm) === 300) {
console.log('[' + table + '] %cStarting %cconnection to WebSocket Server', 'color:green;', 'color:white;')
if (vm.connection == null) {
console.log('[' + table + '] > Setting a new webSocket')
const now_table = table + moment.utc().format('_pYYYY_MM_DD')
vm.connection = new WebSocket(vm.$wsBaseUrl + '/ws?query=insert:' + now_table + ':host_uuid.eq.' + vm.uuid)
vm.connection = new WebSocket(vm.$wsBaseUrl + '/ws?query=insert:' + table + ':host_uuid.eq.' + vm.uuid)
}
// only add the open (at least for the vm.fetching) if we're in realtime
vm.connection.addEventListener('open', function () {
Expand Down

0 comments on commit ce8fe78

Please sign in to comment.