
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-reverb
Advanced tools
A React Native TurboModule wrapper for Laravel Reverb WebSockets.
This package lets you connect to a Reverb server, subscribe/unsubscribe to channels, and listen for broadcasted events & notifications.
npm install react-native-reverb
npm install github:azlanali076/react-native-reverb
or with yarn:
yarn add github:azlanali076/react-native-reverb
Autolinking (React Native 0.71+) The package supports autolinking, no extra linking step required.
iOS Install pods:
cd ios && pod install
Android Nothing extra required, autolinking will register the TurboModule.
import { ReverbClient } from 'react-native-reverb';
const client = new ReverbClient({
appKey: '<YOUR_REVERB_APP_KEY>',
scheme: 'https',
url: '<YOUR_REVERB_HOST>',
auth: {
endpoint: '<YOUR_REVERB_AUTH_ENDPOINT>',
headers: {
Authorization: `Bearer <TOKEN>`,
},
},
});
// Connect to server
await client.connect();
// Subscribe to a channel
const channel = await client.private(`App.Models.Order.${orderId}`);
channel.listen('OrderUpdated', data => {
console.log('Order updated:', data);
});
// Listen for Laravel notifications
channel.notifications(notification => {
console.log('Notification received:', notification);
});
// Remove all Listeners and unsubscribe at once when leaving
await channel.removeAllListeners();
// Disconnect Websocket completely
await client.disconnect();
ReverbClientnew ReverbClient(options: NativeReverbOptions) – create a client instanceconnect(): Promise<void> – connect to Reverb serverdisconnect(): Promise<void> – disconnect & cleanupchannel(name: string): Promise<ReverbChannel> – subscribe to a public channelprivate(name: string): Promise<ReverbPrivateChannel> – subscribe to a private channelReverbChannellisten(event: string, callback: (data) => void) – listen for eventsnotifications(callback: (data) => void) – listen for Laravel notificationsremoveListener(event: string) – stop listening to an eventremoveAllListeners() – stop listening from all events and unsusbcribe the channelunsubscribe() – unsubscribe from this channelClone the repo and install dependencies:
git clone https://github.com/azlanali076/react-native-reverb.git
cd react-native-reverb
npm install
MIT © Syed Azlan Ali
FAQs
React Native TurboModule wrapper for Laravel Reverb WebSocket
We found that react-native-reverb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.