Sec-WebSocket-Accept
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Sec-WebSocket-Accept 헤더는 웹소켓 오프닝 핸드셰이크에 사용됩니다. 이는 응답 헤더에 나타납니다. 즉, 이 헤더는 서버가 웹소켓 연결을 시작할 의향을 알리기 위해 서버에서 클라이언트로 전송하는 헤더입니다.
구문
http
Sec-WebSocket-Accept: <hashed key>
지시어
- <hashed key>
-
서버는 핸드셰이크 요청에서 전송된 Sec-WebSocket-Key의 값을 가져와서
258EAFA5-E914-47DA-95CA-C5AB0DC85B11
을 덧붙이고, 새 값의 SHA-1 값을 가져온 다음, base64로 인코딩합니다.
예제
http
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
명세서
Specification |
---|
The WebSocket Protocol # section-11.3.3 |
같이 보기
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Sec-WebSocket-Accept |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.