mirror of
https://github.com/appium/appium.git
synced 2026-10-25 02:00:57 +08:00
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
import Express from 'express';
|
|
import bodyParser from 'body-parser';
|
|
|
|
export function createProxyServer (sessionId, port) {
|
|
// Start an express server for proxying
|
|
let app = new Express();
|
|
app.use(bodyParser.json());
|
|
let server = app.listen(port);
|
|
return {app, server};
|
|
}
|