Discussions
I cannot start websocket when open app dns 1.1.1.1
5 months ago by VP
When i open app dns 1.1.1.1 on window, i cant connect websocket of empire. I try on another computer my code work normally.
export const initEmpireSocket = async (config: ConfigProps) => {
const socket = io(wss://trade.csgoempire.com/trade, {
transports: ['websocket'],
path: '/s/',
secure: true,
forceNew: true,
rejectUnauthorized: false,
reconnect: true,
extraHeaders: {
'User-agent': ${config.empire.uid} API BOT,
},