Jonathan Haines
b283732a1f
lint: no-confusing-void-expression ( #1244 )
2025-06-23 06:08:46 +09:00
Palmer McCutcheon
5178967931
feat(node-ws): Add WebSocketServer instance return to createNodeWebSocket ( #1213 )
...
* Add WebSocketServer instance return to createNodeWebSocket
This change introduces the return of the WebSocketServer instance from the createNodeWebSocket function, enhancing its usability by allowing consumers access to the WebSocketServer instance for additional operations.
- Updated tests to verify the returned WebSocketServer instance
- Added wss property to NodeWebSocket interface for type safety
* style
2025-06-22 13:07:24 +09:00
Shotaro Nakamura
69a0a586f5
fix(node-ws): use defineWebSocket helper ( #1187 )
...
* fix: use buffering to fix #1129
* chore: changeset
* chore: fmt
* feat(node-ws): use defineWebSocket helper
* changeset
2025-06-02 21:06:25 +09:00
Shotaro Nakamura
ccc49dd508
fix(node-ws): use buffering to fix #1129 ( #1183 )
...
* fix: use buffering to fix #1129
* chore: changeset
* chore: fmt
2025-06-01 11:12:23 +09:00
Shotaro Nakamura
b8453438b6
fix(node-ws): enhance WebSocket connection handling with CORS support ( #1146 )
...
* fix(node-ws): make adapter uncrashable
* add changeset
* unnessesary diff
* fix(node-ws): enhance WebSocket connection handling with CORS support and connection symbols
* fix commentout
* remove unnecessary changese
* update changeset
2025-04-29 18:31:54 +09:00
Shotaro Nakamura
1765a9a3aa
fix(node-ws): make adapter uncrashable ( #1141 )
...
* fix(node-ws): make adapter uncrashable
* add changeset
* unnessesary diff
* update yarn.lock
* make changeset patch
2025-04-27 20:34:43 +09:00
Leia
237bff1b82
fix(node-ws):missing code and reason on CloseEvent ( #1138 )
...
fixes #1012
2025-04-26 13:09:26 +09:00
Jonathan Haines
e8512f0ee9
build: typescript project references ( #1077 )
...
* build: typescript project references
* chore: remove duplicate keys
2025-04-02 18:28:02 +09:00
Shotaro Nakamura
519404ad2c
fix(node-ws): adapter shouldn't send buffer as a event ( #1094 )
...
* fix(node-ws): adapter shouldn't send buffer as a event
* chore: changeset
2025-04-01 21:35:45 +09:00
Dmytro Kulyk
6f90a574c4
feat(node-ws): Reject unexpected WebSocket connections ( #973 )
...
* Added rejection of WebSocket connections when the app does not expect them
* added changeset
* Updated waiter names; removed strict option
2025-02-23 15:31:44 +09:00
Shotaro Nakamura
c24efa6b8a
fix(node-ws): ws wasn't created when upgrade process is async ( #959 )
...
* fix(node-ws): ws wasn't created when upgrade process is async
* chore: add changeset
* add test
* Update big-pillows-shave.md
2025-02-10 18:10:03 +09:00
Yusuke Wada
c80ffbfb4c
fix(node-ws): allow `Hono` with custom Env for `createNodeWebSocket` ( #951 )
...
* fix(node-ws): allow `Hono` with custom Env
* add changeset
2025-02-02 21:25:54 +09:00
Yusuke Wada
7a401b0850
chore: use the latest eslint and `@hono/eslint-config` ( #904 )
...
* chore: use the latest eslint and `@hono/eslint-config`
* update codes
2024-12-25 18:08:43 +09:00
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