Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@webex/internal-plugin-mercury
Advanced tools
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
Plugin for the Mercury service
This is an internal Cisco Webex plugin. As such, it does not strictly adhere to semantic versioning. Use at your own risk. If you're not working on one of our first party clients, please look at our developer api and stick to our public plugins.
npm install --save @webex/internal-plugin-mercury
import '@webex/internal-plugin-mercury';
import WebexCore from '@webex/webex-core';
const webex = new WebexCore();
webex.internal.mercury.WHATEVER;
For consumers who are not using the SDK via the browser it may be necessary to configure a proxy agent in order to connect with Mercury and open a Websocket in a proxy environment.
This can be done by configuring an agent as part of a DefaultMercuryOptions config object as shown below. The agent object will then be injected into the SDK and used in the Mercury plugin during WebSocket construction as an option property, allowing a connection to be established via the specified proxy url.
const webex = require(`webex`);
const HttpsProxyAgent = require('https-proxy-agent');
let httpsProxyAgent = new HttpsProxyAgent(url.parse(proxyUrl));
webex.init({
config: {
defaultMercuryOptions: {
agent: httpsProxyAgent
},
...
}
});
The default behaviour is for Mercury to continue to try to connect with an exponential back-off. This behavior can be adjusted with the following config params:
maxRetries
- the number of times it will retry before error. Default: 0initialConnectionMaxRetries
- the number of times it will retry before error on the first connection. Once a connection has been established, any further connection attempts will use maxRetries
. Default: 0backoffTimeMax
- The maximum time between connection attempts in ms. Default: 32000backoffTimeReset
- The time before the first retry in ms. Default: 1000This package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
FAQs
Unknown package
We found that @webex/internal-plugin-mercury demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.