Skip to content

Commit

Permalink
Merge pull request #13 from phillip-che/secure-connection-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-che authored Dec 3, 2023
2 parents 5d7af7d + 5a66d66 commit d59946c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/context/socket.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ interface Context {
}

const SOCKET_URL =
process.env.NEXT_PUBLIC_SOCKET_URL || 'https://54.153.32.172:4000';
process.env.NEXT_PUBLIC_SOCKET_URL || 'https://cypherchat.lol:4000';

const socket = io(SOCKET_URL, {
reconnection: true,
upgrade: true,
transports: ['websocket', 'polling'],
secure: true,
});

const SocketContext = createContext<Context>({
Expand Down

0 comments on commit d59946c

Please sign in to comment.