@nestjs/platform-ws 12.0.0-alpha.4 → 12.0.0-alpha.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/Readme.md +1 -0
- package/adapters/ws-adapter.js +4 -0
- package/package.json +3 -3
package/Readme.md
CHANGED
|
@@ -129,6 +129,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
129
129
|
<tr>
|
|
130
130
|
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
|
|
131
131
|
<td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
|
|
132
|
+
<td align="center" valign="middle"><a href="https://memory2.co/" target="_blank"><img src="https://images.opencollective.com/memory-squared/bbe37f5/avatar/256.png?height=50" width="50" valign="middle" /></a></td>
|
|
132
133
|
</tr>
|
|
133
134
|
</table>
|
|
134
135
|
|
package/adapters/ws-adapter.js
CHANGED
|
@@ -109,6 +109,10 @@ export class WsAdapter extends AbstractWsAdapter {
|
|
|
109
109
|
return server;
|
|
110
110
|
}
|
|
111
111
|
bindClientDisconnect(client, callback) {
|
|
112
|
+
if (typeof client.once === 'function') {
|
|
113
|
+
client.once(CLOSE_EVENT, callback);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
112
116
|
client.on(CLOSE_EVENT, callback);
|
|
113
117
|
}
|
|
114
118
|
async close(server) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-ws",
|
|
3
|
-
"version": "12.0.0-alpha.
|
|
3
|
+
"version": "12.0.0-alpha.5",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tslib": "2.8.1",
|
|
29
|
-
"ws": "8.
|
|
29
|
+
"ws": "8.21.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@nestjs/common": "^11.0.0",
|
|
33
33
|
"@nestjs/websockets": "^11.0.0",
|
|
34
34
|
"rxjs": "^7.1.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d91b72cc9567e6a09e3ad6075b2fb801e71adfc8"
|
|
37
37
|
}
|