Skip to content

Commit

Permalink
fix defaul socketcluster connection
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Dec 25, 2024
1 parent d3af953 commit f6ad856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contexts/SocketClusterContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const SocketClusterProvider = ({ children }) => {
// Initialize the socket connection
const options = {
hostname: config('SOCKETCLUSTER_HOST', 'socket.fleetbase.io'),
port: parseInt(config('SOCKETCLUSTER_PORT', '8000'), 10),
port: parseInt(config('SOCKETCLUSTER_PORT', '8000')),
path: config('SOCKETCLUSTER_PATH', '/socketcluster/'),
secure: toBoolean(config('SOCKETCLUSTER_SECURE'), true),
secure: toBoolean(config('SOCKETCLUSTER_SECURE', true)),
};

const scSocket = socketClusterClient.create(options);
Expand Down

0 comments on commit f6ad856

Please sign in to comment.