Skip to content

Commit

Permalink
Re-enabled socket
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen authored Feb 2, 2024
1 parent 9f22264 commit 8cf1538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ if (process.env.PRIVATE_SERVER_USERNAME) {

const url = `${process.env.PRIVATE_SERVER_PROTOCOL}://${process.env.PRIVATE_SERVER_HOST}:${process.env.PRIVATE_SERVER_PORT}`

// api.socket.connect()
api.socket.connect()
api.socket.on('connected', () => {
console.log('Connected to socket')
})

// api.socket.subscribe('console')
api.socket.subscribe('console')
api.socket.on('console', async (event) => {
try {
const { data } = await axios.get(`${url}/stats`);
Expand Down

0 comments on commit 8cf1538

Please sign in to comment.