Commit Graph

5 Commits (755d5cb84d5ab3a288a93429183de04c36b255cd)

Author SHA1 Message Date
Quentin 139e34a907
fix(node-ws): `CloseEvent` is not defined (#648)
* feat: add CloseEvent class as it doesn't exist for some versions of Node.js

* chore(style): remove semicolon

* test: add promise to check if "onClose" doesn't crashes

* chore(style): apply eslint rules

* ref: use `globalThis.CloseEvent` whenever possible or fallback to custom CloseEvent class

* chore: add changeset
2024-07-19 07:10:07 +09:00
Quentin 2f307e6877
fix(node-ws): binary messages have wrong byteLength and allocates unnecessary `Buffer` instance (#639)
* fix: no more Buffer.from usage

* test: add test for binary messages

* chore: add changeset
2024-07-15 17:30:50 +09:00
Inaridiy 967fd48d5b
fix(node-ws): Bugfix/603 hono node ws duplicate event listeners (#605)
* add multi connection test case

* fix node  incoming env

* fix spel miss

* Simple bug fixes

* Improve performance

* chore add changeset
2024-07-04 14:17:51 +09:00
Mike Stop Continues ec6ec4ec02
fix(node-ws): create only one WebSocketServer instead of per websocket request (#539) 2024-05-26 11:36:11 +09:00
Shotaro Nakamura d11c3a565f
feat: Introduce WebSocket helper for Node.js | `@hono/node-ws` (#503)
* feat: Introduce WebSocket helper for Node.js | `@hono/node-ws`

* feat(node-ws): add ci and build command

* chore: update yarn.lock

* update `yarn.lock`

* fixed the ci config

* add `@hono/node-server` to devDependecies

* fixed format and specify node version

* fix(node-ws/docs): fix example

* feat: `upgradeWebSocket` be named function

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-05-09 21:51:25 +09:00