> For the complete documentation index, see [llms.txt](https://haleyryu.gitbook.io/engineer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://haleyryu.gitbook.io/engineer/frontend/websocket/websocket-vs-socket.io.md).

# WebSocket vs Socket.io

Socket.io 는 WebSocket 미지원 브라우저를 위해 만들어진 Node.js 기반 기술입니다.

## WebSocket 미지원 브라우저

<https://adrenal.tistory.com/20>

## Socket.io

node.js 기반으로 만들어진 기술로 자체 스팩으로 만들어진 socket.io 서버를 만들고 socket.io 클라이언트와 브라우저에 구애받지 않고 실시간 통신이 가능해진다. socket.io는 [node.js](https://nodejs.org/) 기반이기때문에 모든 코드가 javascript로 작성되어 있다. 서버, 클라이언트 모두 javascript 기반으로 개발하는 것이 기본이다. 그러다보니 자바 개발자들은 socket.io를 쓸 수 없다. [자바로 개발이 가능하게 해주는 방법](https://github.com/keesun/mod-socket-io)이 몇가지 있긴한 것 같지만 역시 javascript 기반 솔루션은 javascript로 개발해야 문제발생을 줄일 수 있을 것이다.\
\
출처: <https://adrenal.tistory.com/20> \[시나몬 브레드]

**nodejs** 기반으로 실시간 이벤트 서버를 개발 할 수 있는 오픈소스 라이브러리 입니다. 특징으로는 멀티 디바이스(web, android, ios, windows)를 지원하며 **websocket**을 지원하지 않는 browser도 지원합니다.

<http://woowabros.github.io/woowabros/2017/09/12/realtime-service.html><br>
