Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pusher-js

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pusher-js - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

worker/index.d.ts

13

CHANGELOG.md
# Changelog
## 7.0.3 (2021-01-25)
[UPDATED] Bumped version of faye-websocket (used only by the node runtime) from
0.9.4 to 0.11.3. Thanks to @Akhawais for the PR.
[UPDATED] Bumped version of @react-native-community/netinfo (used only by the
react-native runtime) from 4.1.1 to 5.9.7. Thanks to @Yinabled for the PR.
[ADDED] We were missing a react-native key in `package.json`. Thanks to @giaset
for the PR
[ADDED] Support for importing the worker builds (solving issue #499)
## 7.0.2 (2020-11-26)

@@ -4,0 +17,0 @@

7

package.json
{
"name": "pusher-js",
"version": "7.0.2",
"version": "7.0.3",
"description": "Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers",
"main": "dist/node/pusher.js",
"browser": "dist/web/pusher.js",
"react-native": "dist/react-native/pusher.js",
"scripts": {

@@ -33,7 +34,7 @@ "test": "echo \"Error: no test specified\" && exit 1",

"devDependencies": {
"@react-native-community/netinfo": "^4.1.1",
"@react-native-community/netinfo": "^5.9.7",
"@stablelib/base64": "^1.0.0",
"@stablelib/utf8": "^1.0.0",
"buffer": "^5.6.0",
"faye-websocket": "^0.9.4",
"faye-websocket": "^0.11.3",
"fetch-mock": "git+https://git@github.com/jpatel531/fetch-mock.git",

@@ -40,0 +41,0 @@ "isomorphic-fetch": "^2.2.1",

@@ -184,2 +184,14 @@ # Pusher Channels Javascript Client

If you're building your worker with a bundler, you can import the worker entrypoint
```
import Pusher from 'pusher-js/worker'
```
If you'd like to use encrypted channels:
```
import Pusher from 'pusher-js/worker/with-encryption'
```
### Node.js

@@ -602,2 +614,16 @@

## Triggering Client Events
It's possible to trigger [client events](https://pusher.com/docs/channels/using_channels/events#triggering-client-events) using the `trigger` method on an instance of the `Channel` class.
A few gotchas to consider when using client events:
- Client events can only be triggered on private/presence channels
- Client events must be enabled in the settings page for your app: `https://dashboard.pusher.com/apps/$YOUR_APP_ID/settings`
- The event name for client events *must* start with `client-`
```
channel.trigger('client-my-event', {message: 'Hello, world!'})
```
## Batching auth requests (aka multi-auth)

@@ -604,0 +630,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc