-
Notifications
You must be signed in to change notification settings - Fork 2
서버 스펙 변경 Node.js -> Vapor #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| app.webSocket("signaling") { req, ws in | ||
| connections.append(ws) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
req, ws같은 축약으로 설정해준 부분이 보이는데 직관적인 네이밍으로 해주시면 좋아보여요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다!
0Hooni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTVOLEDLGTM 👍
Kiyoung-Kim-57
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘 읽었습니다😀
|
|
||
| // 클라이언트가 연결을 종료할 때 호출 | ||
| ws.onClose.whenComplete { _ in | ||
| connections.removeAll { $0 === ws } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
==로 비교하면 안되는지 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

🤔 배경
📃 작업 내역
✅ 리뷰 노트
아래처럼 서버 IP를 0.0.0.0 으로 설정해야 서버에 연결이 되더라구요.
원래 이렇게 하는걸까요? 서버는 처음이라 진짜 모름..
🎨 스크린샷
🚀 테스트 방법
테스트 코드가 없어요 흑흑