본문 바로가기 메뉴 바로가기

just_HS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

just_HS

검색하기 폼
  • 분류 전체보기 (274)
    • python (5)
    • golang (89)
    • embedded (25)
    • google cloud platform (3)
    • google colaboratory (4)
    • deep learning (2)
    • blockchain (9)
    • git (14)
    • etc (13)
    • life-health (16)
    • javascript30 (19)
    • development (34)
    • book-movie (31)
    • til (10)
  • 방명록

websocket (4)
Golang: gorilla/websocket chatting 예제 분석

Photo by Christopher Robin Ebbinghaus on Unsplash Websocket의 대표적인 사용처는 채팅이 아닐까? 지금까지 살펴본 websocket의 동작이 실제 애플리케이션에서 어떻게 구현되고 활용되는지를 gorilla/websocket 패키지에서 제공하는 채팅 예제의 서버쪽 코드로 알아보겠다. websocket connection이 이루어지고 나서 message를 주고 받는 것은 서버와 클라이언트에 차이가 없기 때문이다. 구글링 해보면 이 예제에 대한 분석과 설명은 꽤나 많다. GitHub: https://github.com/gorilla/websocket/tree/master/examples/chat Websocket connection 클라이언트가 서버의 /ws end..

golang 2021. 12. 13. 16:57
Golang: gorilla/websocket 으로 보는 websocket handshake

Photo by Christopher Robin Ebbinghaus on Unsplash 이전 포스팅에서 websocket 전반을 둘러보며 처음 연결시의 handshake를 정리했었는데 이 부분의 코드가 gorilla/websocket 패키지에서는 어떻게 구현되어 있는지를 살펴보자 이전 포스팅: https://jusths.tistory.com/249 GitHub(gorilla/websocket): https://github.com/gorilla/websocket GitHub(gorilla/websocket echo example): https://github.com/gorilla/websocket/tree/master/examples/echo Websocket connection을 위한 handshake..

golang 2021. 11. 30. 18:38
Golang: Websocket masking과 cache poisoning

Photo by Christopher Robin Ebbinghaus on Unsplash Websocket protocol을 보면 mask 여부를 표시하는 flag bit와 masking 적용시 사용할 maksing-key값이 들어가있다. 찾아보니 cache poisoning을 방지해준다 한다. cache poisoning이 뭘까? cache poisoning이란 - 초간단 버전 cache poisoning까지 실제로 해보고, websocket message를 masking/non-masking 했을때의 차이까지 들여다보고 싶어졌지만 있었지만 토끼굴로 들어가면 안된다 싶어 최소한의 이해만 하고 넘어가도록 한다. * 토끼굴(rabbit hole): a situation in which you become ..

golang 2021. 11. 22. 09:44
Golang: Websocket 이해하기

Photo by Christopher Robin Ebbinghaus on Unsplash 간단하게 메시지를 주고 받는 websocket server를 만들어 볼 일이 있었다. gorilla/webscoket의 예제를 참고하여 server와, 테스트를 위한 client까지 동작시켜 보았는데 이참에 개념을 좀더 들여다보자 싶어져서 자료를 찾아 정리해보았다. 이어서 gorilla/webscoket 패키지의 구현을 들여다보려 한다 참고 링크(라고 하고 거의 번역을 한 수준): https://sookocheff.com/post/networking/how-do-websockets-work/ GitHub(gorilla/websocket): https://github.com/gorilla/websocket Websoc..

golang 2021. 11. 17. 15:58
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
  • 이토록 뜻밖의 뇌과학을 읽고
  • Golang: embed한 파일을 API 요청에 ⋯
  • 2022년 본 영화 후기 - 2022년 개봉 영화⋯
  • 2022년 독서 후기
최근에 달린 댓글
  • 한 눈에 알아보시는군요. 시간이 되면 책 이후의 내⋯
  • 이론편이 깔끔하게 정리되었군요!
  • 깔끔하고 눈에 확 들어오게 정리해주셨네요 !!
  • 약간의 오해가 있으신 듯 합니다. 1. bcrypt⋯
Total
386,764
Today
16
Yesterday
307
링크
TAG
  • 마셜
  • 2022
  • Handshake
  • heap
  • solid
  • install
  • postgres
  • Gin
  • golang
  • 명상
  • websocket
  • ORM
  • additional data
  • 비폭력대화
  • powershell
  • docker
  • go
  • agile
  • AES
  • 하드씽
  • bun
  • timestamp
  • 클린 애자일
  • gcm
  • branch
  • min heap
  • 자아
  • gorilla/websocket
  • 로젠버그
  • 독서후기
more
«   2023/02   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28
글 보관함
  • 2023/01 (2)
  • 2022/12 (17)
  • 2022/11 (5)
  • 2022/08 (3)

Blog is powered by Tistory / Designed by Tistory

티스토리툴바