@wooksjs/event-ws 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 wooksjs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @wooksjs/event-ws
2
+
3
+ <p align="center">
4
+ <img src="../../wooks-logo.png" width="450px"><br>
5
+ <a href="https://github.com/wooksjs/wooksjs/blob/main/LICENSE">
6
+ <img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" />
7
+ </a>
8
+ </p>
9
+
10
+ WebSocket adapter for Wooks with path-based message routing, rooms, broadcasting, and composable context. Runs standalone or integrated with `@wooksjs/event-http`.
11
+
12
+ ## Installation
13
+
14
+ ```sh
15
+ npm install @wooksjs/event-ws @wooksjs/event-http ws
16
+ ```
17
+
18
+ ## Documentation
19
+
20
+ For full documentation, visit [wooks.moost.org](https://wooks.moost.org/wsapp/).
21
+
22
+ ## AI Agent Skills
23
+
24
+ This package ships with structured skill files for AI coding agents (Claude Code, Cursor, Windsurf, Codex, etc.).
25
+
26
+ ```bash
27
+ # Project-local (recommended — version-locked, commits with your repo)
28
+ npx wooksjs-event-ws-skill
29
+
30
+ # Global (available across all your projects)
31
+ npx wooksjs-event-ws-skill --global
32
+ ```
33
+
34
+ To keep skills automatically up-to-date, add a postinstall script to your `package.json`:
35
+
36
+ ```json
37
+ {
38
+ "scripts": {
39
+ "postinstall": "wooksjs-event-ws-skill --postinstall"
40
+ }
41
+ }
42
+ ```
43
+
44
+ ## License
45
+
46
+ MIT