@tsed/socketio 8.34.0 → 8.35.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/lib/esm/SocketIOModule.js +6 -6
- package/lib/esm/class/SocketHandlersBuilder.js +4 -4
- package/lib/esm/decorators/args.js +1 -1
- package/lib/esm/decorators/broadcast.js +1 -1
- package/lib/esm/decorators/broadcastOthers.js +1 -1
- package/lib/esm/decorators/emit.js +1 -1
- package/lib/esm/decorators/nsp.js +2 -2
- package/lib/esm/decorators/reason.js +1 -1
- package/lib/esm/decorators/socket.js +1 -1
- package/lib/esm/decorators/socketErr.js +1 -1
- package/lib/esm/decorators/socketEventName.js +1 -1
- package/lib/esm/decorators/socketNsp.js +1 -1
- package/lib/esm/decorators/socketSession.js +1 -1
- package/lib/esm/services/SocketIOServer.js +1 -1
- package/lib/esm/services/SocketIOService.js +2 -2
- package/lib/types/SocketIOModule.d.ts +3 -3
- package/lib/types/services/SocketIOService.d.ts +1 -1
- package/package.json +16 -17
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import Http from "node:http";
|
|
3
|
-
import Https from "node:https";
|
|
4
|
-
import { nameOf } from "@tsed/core";
|
|
5
2
|
import { Constant, Inject, InjectorService, Module } from "@tsed/di";
|
|
6
|
-
import { $log } from "@tsed/logger";
|
|
7
3
|
import { Server } from "socket.io";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
4
|
+
import { $log } from "@tsed/logger";
|
|
5
|
+
import Http from "node:http";
|
|
6
|
+
import Https from "node:https";
|
|
10
7
|
import { IO } from "./decorators/io.js";
|
|
8
|
+
import { PROVIDER_TYPE_SOCKET_SERVICE } from "./constants/constants.js";
|
|
11
9
|
import { SocketIOService } from "./services/SocketIOService.js";
|
|
10
|
+
import { SocketProviderMetadata } from "./class/SocketProviderMetadata.js";
|
|
11
|
+
import { nameOf } from "@tsed/core";
|
|
12
12
|
/**
|
|
13
13
|
* @ignore
|
|
14
14
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { isFunction, Store } from "@tsed/core";
|
|
2
1
|
import { DIContext, runInContext } from "@tsed/di";
|
|
3
|
-
import {
|
|
2
|
+
import { Store, isFunction } from "@tsed/core";
|
|
4
3
|
import { $log } from "@tsed/logger";
|
|
5
|
-
import { v4 } from "uuid";
|
|
6
4
|
import { SocketFilters } from "../interfaces/SocketFilters.js";
|
|
5
|
+
import { SocketProviderMetadata } from "./SocketProviderMetadata.js";
|
|
7
6
|
import { SocketProviderTypes } from "../interfaces/SocketProviderTypes.js";
|
|
8
7
|
import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
|
|
9
|
-
import { SocketProviderMetadata } from "./SocketProviderMetadata.js";
|
|
10
8
|
import { SocketSessionData } from "./SocketSessionData.js";
|
|
9
|
+
import { deserialize } from "@tsed/json-mapper";
|
|
10
|
+
import { v4 } from "uuid";
|
|
11
11
|
/**
|
|
12
12
|
* @ignore
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
|
|
2
1
|
import { SocketReturns } from "./socketReturns.js";
|
|
2
|
+
import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Broadcast the response for all client registered in the same namespace.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
|
|
2
1
|
import { SocketReturns } from "./socketReturns.js";
|
|
2
|
+
import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Broadcast the response for all client registered in the same namespace except to the current client.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SocketFilters } from "../interfaces/SocketFilters.js";
|
|
1
|
+
import { DecoratorTypes, Store, decoratorTypeOf, isRegExp } from "@tsed/core";
|
|
3
2
|
import { SocketFilter } from "./socketFilter.js";
|
|
3
|
+
import { SocketFilters } from "../interfaces/SocketFilters.js";
|
|
4
4
|
/**
|
|
5
5
|
* Inject the [SocketIO.Namespace](https://socket.io/docs/rooms-and-namespaces/#namespaces) instance in the decorated parameter.
|
|
6
6
|
* Note that when using dynamic namespaces, when injecting a parameter, you may want to consider using @SocketNsp instead.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SocketFilters } from "../interfaces/SocketFilters.js";
|
|
2
1
|
import { SocketFilter } from "./socketFilter.js";
|
|
2
|
+
import { SocketFilters } from "../interfaces/SocketFilters.js";
|
|
3
3
|
/**
|
|
4
4
|
* Inject the [SocketIO.Namespace](https://socket.io/docs/rooms-and-namespaces/#namespaces) instance in the decorated parameter.
|
|
5
5
|
* This namespace may differ from the default namespace when using dynamic namespaces.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
+
import * as SocketIO from "socket.io";
|
|
2
3
|
import { InjectorService, Service } from "@tsed/di";
|
|
3
|
-
import
|
|
4
|
+
import { IO } from "../decorators/io.js";
|
|
4
5
|
import { SocketHandlersBuilder } from "../class/SocketHandlersBuilder.js";
|
|
5
6
|
import { SocketProviderMetadata } from "../class/SocketProviderMetadata.js";
|
|
6
|
-
import { IO } from "../decorators/io.js";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Http from "node:http";
|
|
2
|
-
import Https from "node:https";
|
|
3
1
|
import { InjectorService, OnDestroy, Provider } from "@tsed/di";
|
|
4
|
-
import type { AfterListen } from "@tsed/platform-http";
|
|
5
2
|
import { ServerOptions } from "socket.io";
|
|
3
|
+
import type { AfterListen } from "@tsed/platform-http";
|
|
4
|
+
import Http from "node:http";
|
|
5
|
+
import Https from "node:https";
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/socketio",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "Socket.io package for Ts.ED framework",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.34.0",
|
|
6
5
|
"keywords": [
|
|
7
|
-
"
|
|
8
|
-
"socket.io",
|
|
9
|
-
"socket",
|
|
6
|
+
"realtime",
|
|
10
7
|
"server",
|
|
11
|
-
"
|
|
8
|
+
"socket",
|
|
9
|
+
"socket.io",
|
|
10
|
+
"tsed"
|
|
12
11
|
],
|
|
13
12
|
"source": "./src/index.ts",
|
|
13
|
+
"type": "module",
|
|
14
14
|
"main": "./lib/esm/index.js",
|
|
15
15
|
"module": "./lib/esm/index.js",
|
|
16
16
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -34,17 +34,16 @@
|
|
|
34
34
|
"tslib": ">=2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tsed/barrels": "8.
|
|
38
|
-
"@tsed/core": "8.
|
|
39
|
-
"@tsed/di": "8.
|
|
40
|
-
"@tsed/json-mapper": "8.
|
|
41
|
-
"@tsed/openspec": "8.
|
|
42
|
-
"@tsed/platform-http": "8.
|
|
43
|
-
"@tsed/platform-middlewares": "8.
|
|
44
|
-
"@tsed/schema": "8.
|
|
45
|
-
"@tsed/socketio-testing": "8.
|
|
46
|
-
"@tsed/typescript": "8.
|
|
47
|
-
"eslint": "9.12.0",
|
|
37
|
+
"@tsed/barrels": "8.35.0",
|
|
38
|
+
"@tsed/core": "8.35.0",
|
|
39
|
+
"@tsed/di": "8.35.0",
|
|
40
|
+
"@tsed/json-mapper": "8.35.0",
|
|
41
|
+
"@tsed/openspec": "8.35.0",
|
|
42
|
+
"@tsed/platform-http": "8.35.0",
|
|
43
|
+
"@tsed/platform-middlewares": "8.35.0",
|
|
44
|
+
"@tsed/schema": "8.35.0",
|
|
45
|
+
"@tsed/socketio-testing": "8.35.0",
|
|
46
|
+
"@tsed/typescript": "8.35.0",
|
|
48
47
|
"express": "5.2.1",
|
|
49
48
|
"socket.io": "4.8.0",
|
|
50
49
|
"socket.io-client": "^4.8.0",
|