@tsed/socketio 8.0.0-beta.4 → 8.0.0-beta.5
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/package.json +15 -15
- package/readme.md +3 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/socketio",
|
|
3
3
|
"description": "Socket.io package for Ts.ED framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.0.0-beta.
|
|
5
|
+
"version": "8.0.0-beta.5",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tsed",
|
|
8
8
|
"socket.io",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"tslib": "2.7.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tsed/barrels": "8.0.0-beta.
|
|
37
|
-
"@tsed/core": "8.0.0-beta.
|
|
38
|
-
"@tsed/di": "8.0.0-beta.
|
|
39
|
-
"@tsed/json-mapper": "8.0.0-beta.
|
|
40
|
-
"@tsed/openspec": "8.0.0-beta.
|
|
41
|
-
"@tsed/platform-http": "8.0.0-beta.
|
|
42
|
-
"@tsed/platform-middlewares": "8.0.0-beta.
|
|
43
|
-
"@tsed/schema": "8.0.0-beta.
|
|
44
|
-
"@tsed/socketio-testing": "8.0.0-beta.
|
|
45
|
-
"@tsed/typescript": "8.0.0-beta.
|
|
36
|
+
"@tsed/barrels": "8.0.0-beta.5",
|
|
37
|
+
"@tsed/core": "8.0.0-beta.5",
|
|
38
|
+
"@tsed/di": "8.0.0-beta.5",
|
|
39
|
+
"@tsed/json-mapper": "8.0.0-beta.5",
|
|
40
|
+
"@tsed/openspec": "8.0.0-beta.5",
|
|
41
|
+
"@tsed/platform-http": "8.0.0-beta.5",
|
|
42
|
+
"@tsed/platform-middlewares": "8.0.0-beta.5",
|
|
43
|
+
"@tsed/schema": "8.0.0-beta.5",
|
|
44
|
+
"@tsed/socketio-testing": "8.0.0-beta.5",
|
|
45
|
+
"@tsed/typescript": "8.0.0-beta.5",
|
|
46
46
|
"eslint": "9.12.0",
|
|
47
47
|
"express": "^4.21.0",
|
|
48
48
|
"socket.io": "4.8.0",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"vitest": "2.1.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@tsed/di": "8.0.0-beta.
|
|
55
|
-
"@tsed/json-mapper": "8.0.0-beta.
|
|
54
|
+
"@tsed/di": "8.0.0-beta.5",
|
|
55
|
+
"@tsed/json-mapper": "8.0.0-beta.5",
|
|
56
56
|
"@tsed/logger": ">=6.7.5",
|
|
57
|
-
"@tsed/platform-middlewares": "8.0.0-beta.
|
|
58
|
-
"@tsed/schema": "8.0.0-beta.
|
|
57
|
+
"@tsed/platform-middlewares": "8.0.0-beta.5",
|
|
58
|
+
"@tsed/schema": "8.0.0-beta.5",
|
|
59
59
|
"socket.io": ">=4.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
package/readme.md
CHANGED
|
@@ -42,7 +42,7 @@ npm install --save socket.io @types/socket.io @tsed/socketio
|
|
|
42
42
|
Then add the following configuration in your Server:
|
|
43
43
|
|
|
44
44
|
```typescript
|
|
45
|
-
import {Configuration} from "@tsed/
|
|
45
|
+
import {Configuration} from "@tsed/di";
|
|
46
46
|
import "@tsed/socketio"; // import socketio Ts.ED module
|
|
47
47
|
import {resolve} from "path";
|
|
48
48
|
|
|
@@ -112,7 +112,8 @@ export class MySocketService {
|
|
|
112
112
|
Then, you can inject your socket service into another Service, Controller, etc... as following:
|
|
113
113
|
|
|
114
114
|
```typescript
|
|
115
|
-
import {Controller
|
|
115
|
+
import {Controller} from "@tsed/di";
|
|
116
|
+
import {Get} from "@tsed/schema";
|
|
116
117
|
import {MySocketService} from "../services/MySocketService.js";
|
|
117
118
|
|
|
118
119
|
@Controller("/")
|