tlsd 2.18.1 → 2.19.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/package.json +1 -1
- package/tlsd.js +2 -2
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -184,7 +184,7 @@ function make_cookie_setters( res ) {
|
|
|
184
184
|
// 4) Falls back to legacy directory loader at "root/rpc"
|
|
185
185
|
// If loading succeeds, passes the message to the handler.
|
|
186
186
|
// context may be one of:
|
|
187
|
-
// { transport_type: "WS", connection: {
|
|
187
|
+
// { transport_type: "WS", connection: { name, socket, send, cookies, resource }, ... }
|
|
188
188
|
// { transport_type: "GET", connection: { req, res } }
|
|
189
189
|
// { transport_type: "POST", connection: { req, res } }
|
|
190
190
|
// Additionally, context.upload_dir is set to the server's upload directory.
|
|
@@ -795,7 +795,7 @@ function ws_attach( server, msg_handler ) {
|
|
|
795
795
|
socket.send( o2j( msg ) );
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
const conn = { name, socket, send, cookies };
|
|
798
|
+
const conn = { name, socket, send, cookies, resource: wsreq.resource };
|
|
799
799
|
|
|
800
800
|
socket.on( "error", function( err ) {
|
|
801
801
|
E( "WS: error", err.stack || err );
|