Summary: Bumps [eslint](https://github.com/eslint/eslint) from 8.28.0 to 8.31.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/eslint/eslint/releases">eslint's releases</a>.</em></p> <blockquote> <h2>v8.31.0</h2> <h2>Features</h2> <ul> <li><a href="52c7c73c05"><code>52c7c73</code></a> feat: check assignment patterns in no-underscore-dangle (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16693">#16693</a>) (Milos Djermanovic)</li> <li><a href="b401cde47d"><code>b401cde</code></a> feat: add options to check destructuring in no-underscore-dangle (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16006">#16006</a>) (Morten Kaltoft)</li> <li><a href="30d0daf55e"><code>30d0daf</code></a> feat: group properties with values in parentheses in <code>key-spacing</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16677">#16677</a>) (Francesco Trotta)</li> </ul> <h2>Bug Fixes</h2> <ul> <li><a href="35439f1572"><code>35439f1</code></a> fix: correct syntax error in <code>prefer-arrow-callback</code> autofix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16722">#16722</a>) (Francesco Trotta)</li> <li><a href="87b247058e"><code>87b2470</code></a> fix: new instance of FlatESLint should load latest config file version (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16608">#16608</a>) (Milos Djermanovic)</li> </ul> <h2>Documentation</h2> <ul> <li><a href="4339dc462d"><code>4339dc4</code></a> docs: Update README (GitHub Actions Bot)</li> <li><a href="4e4049c5fa"><code>4e4049c</code></a> docs: optimize code block structure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16669">#16669</a>) (Sam Chen)</li> <li><a href="54a7ade5d8"><code>54a7ade</code></a> docs: do not escape code blocks of formatters examples (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16719">#16719</a>) (Sam Chen)</li> <li><a href="e5ecfefa1c"><code>e5ecfef</code></a> docs: Add function call example for no-undefined (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16712">#16712</a>) (Elliot Huffman)</li> <li><a href="a3262f0a63"><code>a3262f0</code></a> docs: Add mastodon link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16638">#16638</a>) (Amaresh S M)</li> <li><a href="a14ccf91af"><code>a14ccf9</code></a> docs: clarify files property (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16709">#16709</a>) (Sam Chen)</li> <li><a href="3b29eb14e0"><code>3b29eb1</code></a> docs: fix npm link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16710">#16710</a>) (Abdullah Osama)</li> <li><a href="a638673ee6"><code>a638673</code></a> docs: fix search bar focus on <code>Esc</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16700">#16700</a>) (Shanmughapriyan S)</li> <li><a href="f62b722251"><code>f62b722</code></a> docs: country flag missing in windows (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16698">#16698</a>) (Shanmughapriyan S)</li> <li><a href="4d27ec6019"><code>4d27ec6</code></a> docs: display zh-hans in the docs language switcher (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16686">#16686</a>) (Percy Ma)</li> <li><a href="8bda20e827"><code>8bda20e</code></a> docs: remove manually maintained anchors (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16685">#16685</a>) (Percy Ma)</li> <li><a href="b68440ff2b"><code>b68440f</code></a> docs: User Guide Getting Started expansion (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16596">#16596</a>) (Ben Perlmutter)</li> </ul> <h2>Chores</h2> <ul> <li><a href="65d4e24c36"><code>65d4e24</code></a> chore: Upgrade <code>@eslint/eslintrc</code><a href="https://github.com/1"><code>@1</code></a>.4.1 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16729">#16729</a>) (Brandon Mills)</li> <li><a href="8d93081a71"><code>8d93081</code></a> chore: fix CI failure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16721">#16721</a>) (Sam Chen)</li> <li><a href="8f17247a93"><code>8f17247</code></a> chore: Set up automatic updating of README (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16717">#16717</a>) (Nicholas C. Zakas)</li> <li><a href="4cd87cb3c5"><code>4cd87cb</code></a> ci: bump actions/stale from 6 to 7 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16713">#16713</a>) (dependabot[bot])</li> <li><a href="fd20c75b10"><code>fd20c75</code></a> chore: sort package.json scripts in alphabetical order (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16705">#16705</a>) (Darius Dzien)</li> <li><a href="10a5c78393"><code>10a5c78</code></a> chore: update ignore patterns in <code>eslint.config.js</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16678">#16678</a>) (Milos Djermanovic)</li> </ul> <h2>v8.30.0</h2> <h2>Features</h2> <ul> <li><a href="075ef2cf31"><code>075ef2c</code></a> feat: add suggestion for no-return-await (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16637">#16637</a>) (Daniel Bartholomae)</li> <li><a href="7190d98ff4"><code>7190d98</code></a> feat: update globals (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16654">#16654</a>) (Sébastien Règne)</li> </ul> <h2>Bug Fixes</h2> <ul> <li><a href="1a327aae57"><code>1a327aa</code></a> fix: Ensure flat config unignores work consistently like eslintrc (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16579">#16579</a>) (Nicholas C. Zakas)</li> <li><a href="9b8bb72c49"><code>9b8bb72</code></a> fix: autofix recursive functions in no-var (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16611">#16611</a>) (Milos Djermanovic)</li> </ul> <h2>Documentation</h2> <ul> <li><a href="6a8cd94ed0"><code>6a8cd94</code></a> docs: Clarify Discord info in issue template config (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16663">#16663</a>) (Nicholas C. Zakas)</li> <li><a href="ad44344ef6"><code>ad44344</code></a> docs: CLI documentation standardization (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16563">#16563</a>) (Ben Perlmutter)</li> <li><a href="293573eb53"><code>293573e</code></a> docs: fix broken line numbers (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16606">#16606</a>) (Sam Chen)</li> <li><a href="fa2c64be10"><code>fa2c64b</code></a> docs: use relative links for internal links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16631">#16631</a>) (Percy Ma)</li> <li><a href="75276c9bc7"><code>75276c9</code></a> docs: reorder options in no-unused-vars (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16625">#16625</a>) (Milos Djermanovic)</li> <li><a href="7276fe5776"><code>7276fe5</code></a> docs: Fix anchor in URL (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16628">#16628</a>) (Karl Horky)</li> <li><a href="6bef1350e6"><code>6bef135</code></a> docs: don't apply layouts to html formatter example (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16591">#16591</a>) (Tanuj Kanti)</li> <li><a href="dfc7ec11b1"><code>dfc7ec1</code></a> docs: Formatters page updates (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16566">#16566</a>) (Ben Perlmutter)</li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/eslint/eslint/blob/main/CHANGELOG.md">eslint's changelog</a>.</em></p> <blockquote> <p>v8.31.0 - December 31, 2022</p> <ul> <li><a href="65d4e24c36"><code>65d4e24</code></a> chore: Upgrade <code>@eslint/eslintrc</code><a href="https://github.com/1"><code>@1</code></a>.4.1 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16729">#16729</a>) (Brandon Mills)</li> <li><a href="35439f1572"><code>35439f1</code></a> fix: correct syntax error in <code>prefer-arrow-callback</code> autofix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16722">#16722</a>) (Francesco Trotta)</li> <li><a href="87b247058e"><code>87b2470</code></a> fix: new instance of FlatESLint should load latest config file version (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16608">#16608</a>) (Milos Djermanovic)</li> <li><a href="8d93081a71"><code>8d93081</code></a> chore: fix CI failure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16721">#16721</a>) (Sam Chen)</li> <li><a href="4339dc462d"><code>4339dc4</code></a> docs: Update README (GitHub Actions Bot)</li> <li><a href="8f17247a93"><code>8f17247</code></a> chore: Set up automatic updating of README (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16717">#16717</a>) (Nicholas C. Zakas)</li> <li><a href="4e4049c5fa"><code>4e4049c</code></a> docs: optimize code block structure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16669">#16669</a>) (Sam Chen)</li> <li><a href="54a7ade5d8"><code>54a7ade</code></a> docs: do not escape code blocks of formatters examples (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16719">#16719</a>) (Sam Chen)</li> <li><a href="52c7c73c05"><code>52c7c73</code></a> feat: check assignment patterns in no-underscore-dangle (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16693">#16693</a>) (Milos Djermanovic)</li> <li><a href="e5ecfefa1c"><code>e5ecfef</code></a> docs: Add function call example for no-undefined (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16712">#16712</a>) (Elliot Huffman)</li> <li><a href="a3262f0a63"><code>a3262f0</code></a> docs: Add mastodon link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16638">#16638</a>) (Amaresh S M)</li> <li><a href="4cd87cb3c5"><code>4cd87cb</code></a> ci: bump actions/stale from 6 to 7 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16713">#16713</a>) (dependabot[bot])</li> <li><a href="a14ccf91af"><code>a14ccf9</code></a> docs: clarify files property (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16709">#16709</a>) (Sam Chen)</li> <li><a href="3b29eb14e0"><code>3b29eb1</code></a> docs: fix npm link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16710">#16710</a>) (Abdullah Osama)</li> <li><a href="fd20c75b10"><code>fd20c75</code></a> chore: sort package.json scripts in alphabetical order (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16705">#16705</a>) (Darius Dzien)</li> <li><a href="a638673ee6"><code>a638673</code></a> docs: fix search bar focus on <code>Esc</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16700">#16700</a>) (Shanmughapriyan S)</li> <li><a href="f62b722251"><code>f62b722</code></a> docs: country flag missing in windows (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16698">#16698</a>) (Shanmughapriyan S)</li> <li><a href="4d27ec6019"><code>4d27ec6</code></a> docs: display zh-hans in the docs language switcher (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16686">#16686</a>) (Percy Ma)</li> <li><a href="8bda20e827"><code>8bda20e</code></a> docs: remove manually maintained anchors (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16685">#16685</a>) (Percy Ma)</li> <li><a href="b401cde47d"><code>b401cde</code></a> feat: add options to check destructuring in no-underscore-dangle (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16006">#16006</a>) (Morten Kaltoft)</li> <li><a href="b68440ff2b"><code>b68440f</code></a> docs: User Guide Getting Started expansion (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16596">#16596</a>) (Ben Perlmutter)</li> <li><a href="30d0daf55e"><code>30d0daf</code></a> feat: group properties with values in parentheses in <code>key-spacing</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16677">#16677</a>) (Francesco Trotta)</li> <li><a href="10a5c78393"><code>10a5c78</code></a> chore: update ignore patterns in <code>eslint.config.js</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16678">#16678</a>) (Milos Djermanovic)</li> </ul> <p>v8.30.0 - December 16, 2022</p> <ul> <li><a href="f2c4737242"><code>f2c4737</code></a> chore: upgrade <code>@eslint/eslintrc</code><a href="https://github.com/1"><code>@1</code></a>.4.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16675">#16675</a>) (Milos Djermanovic)</li> <li><a href="1a327aae57"><code>1a327aa</code></a> fix: Ensure flat config unignores work consistently like eslintrc (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16579">#16579</a>) (Nicholas C. Zakas)</li> <li><a href="075ef2cf31"><code>075ef2c</code></a> feat: add suggestion for no-return-await (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16637">#16637</a>) (Daniel Bartholomae)</li> <li><a href="ba74253e8b"><code>ba74253</code></a> chore: standardize npm script names per <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14827">#14827</a> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16315">#16315</a>) (Patrick McElhaney)</li> <li><a href="6a8cd94ed0"><code>6a8cd94</code></a> docs: Clarify Discord info in issue template config (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16663">#16663</a>) (Nicholas C. Zakas)</li> <li><a href="0d9af4c567"><code>0d9af4c</code></a> ci: fix npm v9 problem with <code>file:</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16664">#16664</a>) (Milos Djermanovic)</li> <li><a href="7190d98ff4"><code>7190d98</code></a> feat: update globals (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16654">#16654</a>) (Sébastien Règne)</li> <li><a href="ad44344ef6"><code>ad44344</code></a> docs: CLI documentation standardization (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16563">#16563</a>) (Ben Perlmutter)</li> <li><a href="90c9219181"><code>90c9219</code></a> refactor: migrate off deprecated function-style rules in all tests (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16618">#16618</a>) (Bryan Mishkin)</li> <li><a href="9b8bb72c49"><code>9b8bb72</code></a> fix: autofix recursive functions in no-var (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16611">#16611</a>) (Milos Djermanovic)</li> <li><a href="293573eb53"><code>293573e</code></a> docs: fix broken line numbers (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16606">#16606</a>) (Sam Chen)</li> <li><a href="fa2c64be10"><code>fa2c64b</code></a> docs: use relative links for internal links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16631">#16631</a>) (Percy Ma)</li> <li><a href="75276c9bc7"><code>75276c9</code></a> docs: reorder options in no-unused-vars (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16625">#16625</a>) (Milos Djermanovic)</li> <li><a href="7276fe5776"><code>7276fe5</code></a> docs: Fix anchor in URL (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16628">#16628</a>) (Karl Horky)</li> <li><a href="6bef1350e6"><code>6bef135</code></a> docs: don't apply layouts to html formatter example (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16591">#16591</a>) (Tanuj Kanti)</li> <li><a href="dfc7ec11b1"><code>dfc7ec1</code></a> docs: Formatters page updates (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16566">#16566</a>) (Ben Perlmutter)</li> <li><a href="8ba124cfd8"><code>8ba124c</code></a> docs: update the <code>prefer-const</code> example (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16607">#16607</a>) (Pavel)</li> <li><a href="e6cb05aa35"><code>e6cb05a</code></a> docs: fix css leaking (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16603">#16603</a>) (Sam Chen)</li> </ul> <p>v8.29.0 - December 2, 2022</p> <ul> <li><a href="0311d81834"><code>0311d81</code></a> docs: Configuring Plugins page intro, page tweaks, and rename (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16534">#16534</a>) (Ben Perlmutter)</li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="d9a39c7685"><code>d9a39c7</code></a> 8.31.0</li> <li><a href="5d182ce708"><code>5d182ce</code></a> Build: changelog update for 8.31.0</li> <li><a href="65d4e24c36"><code>65d4e24</code></a> chore: Upgrade <code>@eslint/eslintrc</code><a href="https://github.com/1"><code>@1</code></a>.4.1 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16729">#16729</a>)</li> <li><a href="35439f1572"><code>35439f1</code></a> fix: correct syntax error in <code>prefer-arrow-callback</code> autofix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16722">#16722</a>)</li> <li><a href="87b247058e"><code>87b2470</code></a> fix: new instance of FlatESLint should load latest config file version (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16608">#16608</a>)</li> <li><a href="8d93081a71"><code>8d93081</code></a> chore: fix CI failure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16721">#16721</a>)</li> <li><a href="4339dc462d"><code>4339dc4</code></a> docs: Update README</li> <li><a href="8f17247a93"><code>8f17247</code></a> chore: Set up automatic updating of README (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16717">#16717</a>)</li> <li><a href="4e4049c5fa"><code>4e4049c</code></a> docs: optimize code block structure (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16669">#16669</a>)</li> <li><a href="54a7ade5d8"><code>54a7ade</code></a> docs: do not escape code blocks of formatters examples (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/16719">#16719</a>)</li> <li>Additional commits viewable in <a href="https://github.com/eslint/eslint/compare/v8.28.0...v8.31.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/4419 Reviewed By: antonk52 Differential Revision: D42370532 Pulled By: passy fbshipit-source-id: 4ece5752034b32bce0d217ebc86141c045d1dbfd
js-flipper
This package exposes JavaScript bindings to talk from web / Node.js directly to flipper.
Installation
yarn add js-flipper
Usage
How to build Flipper plugins is explained in the flipper documentation: Creating a Flipper plugin. Building a Flipper plugin involves building a plugin for the Desktop app, and a plugin that runs on a Device (web or Node.js). This package is only needed for the plugin that runs on the device (web / Node.js), and wants to use the WebSocket connection to communicate to Flipper.
This package exposes a flipperClient. It has:
addPluginmethod. It accepts apluginparameter, that registers a client plugin and will fire the relevant callbacks if the corresponding desktop plugin is selected in the Flipper Desktop. The full plugin API is documented here.startmethod. It starts the client. It has two arguments:appName- (required) the name displayed in Flipperoptionswhich conforms to the interfaceinterface FlipperClientOptions { // Make the client connect to a different URL urlBase?: string; // Override WebSocket implementation (Node.js folks, it is for you!) websocketFactory?: (url: string) => FlipperWebSocket; // Override how errors are handled (it is simple `console.error` by default) onError?: (e: unknown) => void; // Timeout after which client tries to reconnect to Flipper reconnectTimeout?: number; // Set device ID. Default: random ID persisted to local storage. getDeviceId?: () => Promise<string> | string }
Example (web)
An example plugin can be found in FlipperTicTacToe.js.
The corresponding Desktop plugin ships by default in Flipper, so importing the
above file and dropping the <FlipperTicTacToe /> component somewhere in your
application should work out of the box.
The sources of the corresponding Desktop plugin can be found here.
Node.js
Node.js does not have a built-in WebSocket implementation. You need to install any implementation of WebSockets for Node.js that is compatible with the interface of the web version.
import flipperClient from 'js-flipper';
// Say, you decided to go with 'ws'
// https://github.com/websockets/ws
import WebSocket from 'ws';
// Start the client and pass some options
// You might ask yourself why there is the second argument `{ origin: 'localhost:' }`
// Flipper Desktop verifies the `Origin` header for every WS connection. You need to set it to one of the whitelisted values (see `VALID_WEB_SOCKET_REQUEST_ORIGIN_PREFIXES`).
flipperClient.start('My cool nodejs app', { websocketFactory: url => new WebSocket(url, {origin: 'localhost:'}) });
An example plugin should be somewhat similar to what we have for React. It is currently WIP (do not confuse with RIP!).