Skip to content

Commit

Permalink
chore: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormix committed Nov 10, 2023
1 parent fb98254 commit f4e0cd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const App = () => {

const { toast } = useToast()

const ws = useWebSocket('ws://localhost:9000/ws', {
const ws = useWebSocket('wss://omegle-server.lab.stormix.dev/ws', {
onOpen: () => {
console.log('opened')
},
Expand Down
12 changes: 8 additions & 4 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ const main = async () => {
})
}

main().catch((error) => {
console.error(error)
process.exit(1)
})
main()
.then(() => {
console.log(`Server started on port ${env.PORT ?? 9000}`)
})
.catch((error) => {
console.error(error)
process.exit(1)
})

0 comments on commit f4e0cd9

Please sign in to comment.