@simplysm/service-server 14.0.10 → 14.0.12
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 +12 -12
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install @simplysm/service-server
|
|
|
15
15
|
|-----|------|-------------|
|
|
16
16
|
| `ServiceServerOptions` | `interface` | Server configuration (rootPath, port, SSL, auth, services) |
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
→ See [docs/server-options.md](./docs/server-options.md) for details.
|
|
19
19
|
|
|
20
20
|
### Authentication (JWT)
|
|
21
21
|
| API | Type | Description |
|
|
@@ -25,7 +25,7 @@ npm install @simplysm/service-server
|
|
|
25
25
|
| `verifyJwt` | `function` | Verifies a JWT token |
|
|
26
26
|
| `decodeJwt` | `function` | Decodes a JWT token without verification |
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
→ See [docs/auth.md](./docs/auth.md) for details.
|
|
29
29
|
|
|
30
30
|
### Service Definition/Context
|
|
31
31
|
| API | Type | Description |
|
|
@@ -38,14 +38,14 @@ npm install @simplysm/service-server
|
|
|
38
38
|
| `defineService` | `function` | Defines a named service with a factory function |
|
|
39
39
|
| `ServiceMethods` | `type` | Extracts method signatures from a ServiceDefinition |
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
→ See [docs/service-definition.md](./docs/service-definition.md) for details.
|
|
42
42
|
|
|
43
43
|
### Service Executor
|
|
44
44
|
| API | Type | Description |
|
|
45
45
|
|-----|------|-------------|
|
|
46
46
|
| `executeServiceMethod` | `function` | Executes a service method with auth checking |
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
→ See [docs/service-executor.md](./docs/service-executor.md) for details.
|
|
49
49
|
|
|
50
50
|
### WebSocket Handler
|
|
51
51
|
| API | Type | Description |
|
|
@@ -53,7 +53,7 @@ npm install @simplysm/service-server
|
|
|
53
53
|
| `WebSocketHandler` | `interface` | Multi-connection WebSocket handler with event broadcasting |
|
|
54
54
|
| `createWebSocketHandler` | `function` | Creates a WebSocket handler instance |
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
→ See [docs/websocket-handler.md](./docs/websocket-handler.md) for details.
|
|
57
57
|
|
|
58
58
|
### Service Socket
|
|
59
59
|
| API | Type | Description |
|
|
@@ -61,7 +61,7 @@ npm install @simplysm/service-server
|
|
|
61
61
|
| `ServiceSocket` | `interface` | Single WebSocket connection with protocol and events |
|
|
62
62
|
| `createServiceSocket` | `function` | Creates a service socket instance |
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
→ See [docs/service-socket.md](./docs/service-socket.md) for details.
|
|
65
65
|
|
|
66
66
|
### HTTP Handlers
|
|
67
67
|
| API | Type | Description |
|
|
@@ -70,7 +70,7 @@ npm install @simplysm/service-server
|
|
|
70
70
|
| `handleUpload` | `function` | Handles multipart file uploads |
|
|
71
71
|
| `handleStaticFile` | `function` | Serves static files with security guards |
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
→ See [docs/http-handlers.md](./docs/http-handlers.md) for details.
|
|
74
74
|
|
|
75
75
|
### Protocol Wrapper
|
|
76
76
|
| API | Type | Description |
|
|
@@ -78,7 +78,7 @@ npm install @simplysm/service-server
|
|
|
78
78
|
| `ServerProtocolWrapper` | `interface` | Server-side protocol wrapper with worker thread offloading |
|
|
79
79
|
| `createServerProtocolWrapper` | `function` | Creates a server protocol wrapper instance |
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
→ See [docs/protocol-wrapper.md](./docs/protocol-wrapper.md) for details.
|
|
82
82
|
|
|
83
83
|
### ORM/AutoUpdate Services
|
|
84
84
|
| API | Type | Description |
|
|
@@ -88,21 +88,21 @@ npm install @simplysm/service-server
|
|
|
88
88
|
| `AutoUpdateService` | `const (ServiceDefinition)` | Built-in auto-update service definition |
|
|
89
89
|
| `AutoUpdateServiceType` | `type` | Auto-update service method signatures |
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
→ See [docs/built-in-services.md](./docs/built-in-services.md) for details.
|
|
92
92
|
|
|
93
93
|
### Config Manager
|
|
94
94
|
| API | Type | Description |
|
|
95
95
|
|-----|------|-------------|
|
|
96
96
|
| `getConfig` | `function` | Loads JSON config with file-watching and caching |
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
→ See [docs/config-manager.md](./docs/config-manager.md) for details.
|
|
99
99
|
|
|
100
100
|
### Legacy V1
|
|
101
101
|
| API | Type | Description |
|
|
102
102
|
|-----|------|-------------|
|
|
103
103
|
| `handleV1Connection` | `function` | V1 legacy WebSocket handler (auto-update only) |
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
→ See [docs/legacy-v1.md](./docs/legacy-v1.md) for details.
|
|
106
106
|
|
|
107
107
|
### Main ServiceServer
|
|
108
108
|
| API | Type | Description |
|
|
@@ -110,7 +110,7 @@ npm install @simplysm/service-server
|
|
|
110
110
|
| `ServiceServer` | `class` | Main server class (Fastify + WebSocket + auth) |
|
|
111
111
|
| `createServiceServer` | `function` | Factory function to create a ServiceServer |
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
→ See [docs/service-server.md](./docs/service-server.md) for details.
|
|
114
114
|
|
|
115
115
|
## Usage Examples
|
|
116
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/service-server",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.12",
|
|
4
4
|
"description": "심플리즘 패키지 - 서비스 (server)",
|
|
5
5
|
"author": "심플리즘",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"semver": "^7.7.4",
|
|
32
32
|
"utf-8-validate": "^6.0.6",
|
|
33
33
|
"ws": "^8.20.0",
|
|
34
|
-
"@simplysm/core-
|
|
35
|
-
"@simplysm/
|
|
36
|
-
"@simplysm/
|
|
37
|
-
"@simplysm/orm-node": "14.0.
|
|
38
|
-
"@simplysm/service-common": "14.0.
|
|
34
|
+
"@simplysm/core-node": "14.0.12",
|
|
35
|
+
"@simplysm/core-common": "14.0.12",
|
|
36
|
+
"@simplysm/orm-common": "14.0.12",
|
|
37
|
+
"@simplysm/orm-node": "14.0.12",
|
|
38
|
+
"@simplysm/service-common": "14.0.12"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/semver": "^7.7.1",
|