This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): beta.17 - sockets swagger support (#197)
- Loading branch information
Showing
14 changed files
with
131 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,5 +148,5 @@ | |
] | ||
} | ||
}, | ||
"version": "1.0.0-beta.16" | ||
"version": "1.0.0-beta.17" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SOURCE_TYPE = 'http'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './decorators'; | ||
export { HTTP_ADAPTER, HttpApplicationAdapter, HttpContext, ParameterType } from './helpers'; | ||
export { HTTP_ADAPTER, HttpApplicationAdapter, HttpContext, HttpMethodType, ParameterType, SOURCE_TYPE } from './helpers'; | ||
export * from './http.module'; | ||
export { AdapterRoute, RouteMetadata } from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
import { methodDecoratorFactory } from '../../../core'; | ||
import { EventType } from '../helpers'; | ||
import { EventType, SOURCE_TYPE } from '../helpers'; | ||
|
||
export function Connection() { | ||
return methodDecoratorFactory({ | ||
source: SOURCE_TYPE, | ||
type: EventType.CONNECTION, | ||
}); | ||
} | ||
|
||
export function Disconnect() { | ||
return methodDecoratorFactory({ | ||
source: SOURCE_TYPE, | ||
type: EventType.DISCONNECT, | ||
}); | ||
} | ||
|
||
export function Disconnecting() { | ||
return methodDecoratorFactory({ | ||
source: SOURCE_TYPE, | ||
type: EventType.DISCONNECTING, | ||
}); | ||
} | ||
|
||
export function Event(event: string) { | ||
return methodDecoratorFactory({ | ||
event, | ||
source: SOURCE_TYPE, | ||
type: EventType.EVENT, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './event-type'; | ||
export * from './injectables'; | ||
export * from './parameter-type'; | ||
export * from './source-type'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SOURCE_TYPE = 'sockets'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './decorators'; | ||
export { ParameterType, SOCKETS_ADAPTER, SocketsApplicationAdapter, SocketsContext } from './helpers'; | ||
export { ParameterType, SOCKETS_ADAPTER, SocketsApplicationAdapter, SocketsContext, SOURCE_TYPE } from './helpers'; | ||
export * from './sockets.module'; | ||
export { AdapterEvent, EventMetadata } from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters