Skip to content

Conversation

@youn9k
Copy link
Member

@youn9k youn9k commented Nov 7, 2024

🤔 배경

📃 작업 내역

  • 네이버 클라우드 인스턴스에 swift 6.0.2 설치
  • 네이버 클라우드 인스턴스에 make 설치
  • 네이버 클라우드 인스턴스에 vapor 설치
  • vapor 서버 배포

✅ 리뷰 노트

아래처럼 서버 IP를 0.0.0.0 으로 설정해야 서버에 연결이 되더라구요.
원래 이렇게 하는걸까요? 서버는 처음이라 진짜 모름..

public func configure(_ app: Application) async throws {
    app.http.server.configuration.hostname = "0.0.0.0"
    app.http.server.configuration.port = 8080
    try routes(app)
}

🎨 스크린샷

iPhone SE(2세대) iPhone 14 iPhone 16 Pro Max
서버라 음슴미다.. 스샷 스샷

🚀 테스트 방법

테스트 코드가 없어요 흑흑

@youn9k youn9k added the ✨ feat 새로운 기능 추가 label Nov 7, 2024
@youn9k youn9k self-assigned this Nov 7, 2024
@youn9k youn9k linked an issue Nov 7, 2024 that may be closed by this pull request
2 tasks
Comment on lines 7 to 8
app.webSocket("signaling") { req, ws in
connections.append(ws)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req, ws같은 축약으로 설정해준 부분이 보이는데 직관적인 네이밍으로 해주시면 좋아보여요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9fe8a8f

수정했습니다!

Copy link
Collaborator

@0Hooni 0Hooni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTVOLEDLGTM 👍

Copy link
Member

@Kiyoung-Kim-57 Kiyoung-Kim-57 left a 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 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

==로 비교하면 안되는지 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

배열안에 담긴 타입이 레퍼런스타입이라 ===으로 비교해주었습니다!

@youn9k youn9k merged commit 7a1f875 into develop Nov 7, 2024
@youn9k youn9k deleted the feature/#5-migrate-server branch November 9, 2024 01:45
@youn9k youn9k linked an issue Nov 9, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feat 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

시그널링 서버 구현 서버 스펙 변경 Node.js -> Vapor

4 participants