mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
cd073ab51f
Bumps [ws](https://github.com/websockets/ws) from 8.10.0 to 8.11.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/websockets/ws/releases">ws's releases</a>.</em></p> <blockquote> <h2>8.11.0</h2> <h1>Features</h1> <ul> <li><code>WebSocket.prototype.addEventListener()</code> now supports an event listener specified as an object with a <code>handleEvent()</code> method. (9ab743aa).</li> </ul> <h1>Bug fixes</h1> <ul> <li><code>WebSocket.prototype.addEventListener()</code> now adds an event listener only if it is not already in the list of the event listeners for the specified event type (1cec17da).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.. | ||
src | ||
cert.pem | ||
CHANGELOG.md | ||
key.pem | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
TestServer
This test server is used internally by Puppeteer to test Puppeteer itself.
Example
const {TestServer} = require('@pptr/testserver');
(async(() => {
const httpServer = await TestServer.create(__dirname, 8000),
const httpsServer = await TestServer.createHTTPS(__dirname, 8001)
httpServer.setRoute('/hello', (req, res) => {
res.end('Hello, world!');
});
console.log('HTTP and HTTPS servers are running!');
})();