penambahan web socket
This commit is contained in:
14
examples/nuxt3-websocket-client/node_modules/diff/libesm/util/params.js
generated
vendored
Normal file
14
examples/nuxt3-websocket-client/node_modules/diff/libesm/util/params.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export function generateOptions(options, defaults) {
|
||||
if (typeof options === 'function') {
|
||||
defaults.callback = options;
|
||||
}
|
||||
else if (options) {
|
||||
for (const name in options) {
|
||||
/* istanbul ignore else */
|
||||
if (Object.prototype.hasOwnProperty.call(options, name)) {
|
||||
defaults[name] = options[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
return defaults;
|
||||
}
|
||||
Reference in New Issue
Block a user