* 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
* node-ws: Added missing WSContext raw type
* Updated hono version and added it as peer dependencies
* update `package.json` and the lock file
* add changeset
---------
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
* 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
* 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>