@furystack/websocket-api 13.0.18 → 13.0.20
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/README.md +5 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# websocket-api
|
|
2
2
|
|
|
3
|
-
WebSocket implementation for FuryStack
|
|
3
|
+
WebSocket implementation for FuryStack.
|
|
4
4
|
|
|
5
|
-
### Usage
|
|
5
|
+
### Usage Example
|
|
6
6
|
|
|
7
|
-
You can initialize the WebSocket package
|
|
7
|
+
You can initialize the WebSocket package as follows:
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
const myInjector = new Injector().useWebsockets({
|
|
@@ -13,9 +13,9 @@ const myInjector = new Injector().useWebsockets({
|
|
|
13
13
|
})
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### Implementing Your Own Actions
|
|
17
17
|
|
|
18
|
-
You can implement a WebSocket action
|
|
18
|
+
You can implement a WebSocket action as follows:
|
|
19
19
|
|
|
20
20
|
```ts
|
|
21
21
|
import { User } from '@furystack/core'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/websocket-api",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.20",
|
|
4
4
|
"description": "HTTP Api FuryStack package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/furystack/furystack",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@furystack/core": "^15.0.
|
|
38
|
-
"@furystack/inject": "^12.0.
|
|
39
|
-
"@furystack/rest-service": "^10.0.
|
|
40
|
-
"@furystack/utils": "^8.0.
|
|
41
|
-
"ws": "^8.18.
|
|
37
|
+
"@furystack/core": "^15.0.19",
|
|
38
|
+
"@furystack/inject": "^12.0.16",
|
|
39
|
+
"@furystack/rest-service": "^10.0.20",
|
|
40
|
+
"@furystack/utils": "^8.0.15",
|
|
41
|
+
"ws": "^8.18.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/ws": "^8.18.1",
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
|
-
"vitest": "^3.
|
|
46
|
+
"vitest": "^3.2.2"
|
|
47
47
|
},
|
|
48
48
|
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
|
|
49
49
|
}
|