# Node 22.5.0, sqlite 를 내장하고 Websocket 지원

> Clean Markdown view of GeekNews topic #16013. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=16013](https://news.hada.io/topic?id=16013)
- GeekNews Markdown: [https://news.hada.io/topic/16013.md](https://news.hada.io/topic/16013.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-07-25T10:22:02+09:00
- Updated: 2024-07-25T10:22:02+09:00
- Original source: [github.com/nodejs](https://github.com/nodejs/node/releases/tag/v22.5.0)
- Points: 9
- Comments: 2

## Summary

Node.js 22.5.0 버전부터 내장 SQLite를 사용하여 인메모리 데이터베이스를 생성하고 SQL로 데이터를 관리할 수 있습니다. 또한, WebSocket 지원이 추가되어 실시간 통신 기능을 쉽게 구현할 수 있습니다.

## Topic Body

- `node:sqlite` 로 내장 SQLite 사용 가능  
  - 인메모리 DB를 생성하고 SQL로 테이블 생성 및 데이터 넣기/조회가 가능해짐   
  - `import { DatabaseSync } from 'node:sqlite'; const database = new DatabaseSync(':memory:');`  
- `node:http` 에서 WebSocket 이 노출되어 이용 가능   
  - `import { WebSocket } from 'node:http';`

## Comments



### Comment 27541

- Author: unsure4000
- Created: 2024-07-25T10:51:01+09:00
- Points: 1

ecma script 구현체마다 node:sqlite, bun:sqlite..... 썩 맘에 들진 않네요

### Comment 27539

- Author: xguru
- Created: 2024-07-25T10:23:01+09:00
- Points: 1

바로 다른 에러가 패치된 22.5.1 이 릴리즈 되었으니, 테스트 한다면 22.5.1을 사용하세요   
https://github.com/nodejs/node/releases/tag/v22.5.1
