File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {ResultTypes} from "./metadata/types/ResultTypes";
14
14
*
15
15
* @param namespace Namespace in which this controller's events will be registered.
16
16
*/
17
- export function SocketController ( namespace ?: string ) {
17
+ export function SocketController ( namespace ?: string | RegExp ) {
18
18
return function ( object : Function ) {
19
19
const metadata : SocketControllerMetadataArgs = {
20
20
namespace : namespace ,
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ export class ControllerMetadata {
21
21
/**
22
22
* Base route for all actions registered in this controller.
23
23
*/
24
- namespace : string ;
24
+ namespace : string | RegExp ;
25
25
26
26
// -------------------------------------------------------------------------
27
27
// Constructor
28
28
// -------------------------------------------------------------------------
29
-
29
+
30
30
constructor ( args : SocketControllerMetadataArgs ) {
31
31
this . target = args . target ;
32
32
this . namespace = args . namespace ;
@@ -39,5 +39,5 @@ export class ControllerMetadata {
39
39
get instance ( ) : any {
40
40
return getFromContainer ( this . target ) ;
41
41
}
42
-
42
+
43
43
}
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ export interface SocketControllerMetadataArgs {
11
11
/**
12
12
* Extra namespace in which this controller's events will be registered.
13
13
*/
14
- namespace ?: string ;
15
-
14
+ namespace ?: string | RegExp ;
15
+
16
16
}
You can’t perform that action at this time.
0 commit comments