mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
feat: add missing ws options
Reference: https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketaddress-protocols-options Related: - https://github.com/socketio/engine.io-client/issues/574 - https://github.com/socketio/engine.io-client/issues/615
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
module.exports.pick = (obj, ...attr) => {
|
||||
return attr.reduce((acc, k) => {
|
||||
acc[k] = obj[k];
|
||||
if (obj.hasOwnProperty(k)) {
|
||||
acc[k] = obj[k];
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user