Registry / testing / basil-ws-flipper

basil-ws-flipper

JSON →
library1.0.0jsnpmunverified

React Native Flipper plugin for monitoring and debugging WebSocket connections. Version 1.0.0 provides a desktop Flipper client plugin to view WebSocket tunnel traffic, send data to the server, and mock received data. It targets React Native developers using Flipper for debugging. The package requires the companion Flipper desktop plugin 'flipper-plugin-basil-ws' to be installed separately. Active development with no recent updates.

npm install basil-ws-flipper
INSTALL
IMPORT
SIG · BASIL-WS-FLIPPER
B
basil-ws-flipper
testingjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wsDebugPlugin
require('basil-ws-flipper').wsDebugPlugin
import { wsDebugPlugin } from 'basil-ws-flipper';
This plugin is intended to be required conditionally in __DEV__ . ESM import may work but recommend require for conditional loading.

Shows how to install and activate the plugin conditionally in development mode, plus required desktop plugin.

// Install: yarn add basil-ws-flipper react-native-flipper // In your React Native app bootstrap (e.g., App.tsx): if (__DEV__) { require('basil-ws-flipper').wsDebugPlugin; } // Then install the Flipper desktop plugin: flipper-plugin-basil-ws
Debug
Known issues
gotchaThe plugin only works in __DEV__ mode; in production it should not be required.
fix
Wrap the require statement in a __DEV__ check as shown in the quickstart.
affects: >=1.0
gotchaThe Flipper desktop plugin 'flipper-plugin-basil-ws' must be installed separately; it is not included in this npm package.
fix
Install the desktop plugin via Flipper's Manage Plugins (search 'basil-ws').
affects: >=1.0
deprecatedThe package uses require() which is CommonJS; ESM import may cause issues if the bundler doesn't handle it properly.
fix
Use conditional require as shown; do not use top-level import statements.
affects: >=1.0
Errors
Common errors & fixes
Module 'basil-ws-flipper' not found
The package is not installed, or peer dependency react-native-flipper is missing.
fix
Run 'yarn add basil-ws-flipper react-native-flipper' (or npm install).
Cannot find module 'react-native-flipper'
react-native-flipper is not installed.
fix
Install it: yarn add react-native-flipper
Plugin 'basil-ws' is not showing in Flipper
The desktop plugin flipper-plugin-basil-ws is not installed.
fix
In Flipper, go to Manage Plugins > Install Plugins and search for 'basil-ws' to install it.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
react-native-flipperrequiredPeer dependency; required for Flipper integration in React Native
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
basil-ws-flipper — npm install basil-ws-flipper · libregistry