Skip to content

Commit

Permalink
Add HOST_STEAM environment variable
Browse files Browse the repository at this point in the history
Update steamSocket connection to use HOST_STEAM environment variable
  • Loading branch information
Geczy committed Jan 1, 2024
1 parent 2a708eb commit e41c341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
HOST_REDIS=""
HOST_TWITCH_EVENTS=""
HOST_TWITCH_CHAT=""
HOST_STEAM=""

# Set the Node environment to development
NODE_ENV="development"
Expand Down
2 changes: 1 addition & 1 deletion packages/dota/src/steam/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { io } from 'socket.io-client'

import { logger } from '../utils/logger.js'

export const steamSocket = io('ws://steam:5035')
export const steamSocket = io(`ws://${process.env.HOST_STEAM}:5035`)

steamSocket.on('connect', () => {
logger.info('We alive on steamSocket steam server!')
Expand Down

0 comments on commit e41c341

Please sign in to comment.