Open
Conversation
doho-ho
requested changes
Jan 23, 2022
doho-ho
left a comment
There was a problem hiding this comment.
잘 읽었습니다.
- WebSocket 기술은 몇번의 포트번호를 사용하나요?
- TCP 프로토콜과 WebSocket 프로토콜의 차이는 무엇인가요?
- Upgrade header에 대한 설명도 추가되면 좋을 것 같습니다.
- HTTP를 이용한 브라우저에서 활용되는 기술이니만큼 HTTP와 WebSocket의 차이점에 대해서 정리되어있었으면 좋겠습니다.
|
|
||
| - 웹소켓 연결은 HTTP 프로토콜을 통해 이루어짐 | ||
| - handshake 과정이 성공적으로 끝나면 HTTP를 웹소켓 프로토콜로 바꾸는 protocol switching 과정이 진행됨 | ||
| - 이후 웹소켓을 위한 새로운 소켓이 만들어지고 이 소켓을 이요해 통신한다. |
ChaerinYu
reviewed
Jan 23, 2022
|
|
||
| > 웹소켓이란 서버와 클라이언트 간의 효율적인 양방향 통신이 가능한 방법으로, 기본적으로 stateful protocol 방식이다. | ||
| > | ||
| > 정보를 실시간 교류할 수 있디 때문에 채팅, 주식과 같은 즉각적인 변화를 감지해야 하는 서비스에 좋다. |
Member
|
WebSocket은 TCP와 다르게 어떻게 클라이언트의 요청없이 서버와 통신하는 건가요? |
Author
|
@Kodo92
|
Author
처음 클라이언트와 서버가 연결될 때는 3핸드쉐이크로 연결을 합니다.(즉, 처음에는 클라이언트가 서버에 요청해야 함) |
|
doho-ho
approved these changes
Feb 20, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#42