Skip to content

Commit 95d9994

Browse files
authored
Merge pull request #12 from pusher/update-readme
Fix typos on README file
2 parents 6390ae7 + f31e905 commit 95d9994

File tree

3 files changed

+9659
-14
lines changed

3 files changed

+9659
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ To integrate the plugin in your React Native App, you need
8383
to add the plugin to your `package.json`:
8484

8585
```bash
86-
npm install pusher-websocket-react-native
86+
npm install @pusher/pusher-websocket-react-native
8787
```
8888
or
8989
```bash
90-
yarn add pusher-websocket-react-native
90+
yarn add @pusher/pusher-websocket-react-native
9191
```
9292

9393
### iOS specific installation
@@ -109,7 +109,7 @@ pusher-websocket-java dependency.
109109

110110
## Initialization
111111

112-
The Pusherclass is a singleton that
112+
The Pusher class is a singleton that
113113
can be instantiated with `getInstance()`. Then you need to initialize the client with several configuration options. Here is a quick example with several callbacks options:
114114

115115
```typescript

example/src/App.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,6 @@ export default function App() {
121121
onChangeMembers([...channel.members.values()]);
122122
};
123123

124-
const onAuthorizer = async (
125-
channelName: string,
126-
socketId: string
127-
) => {
128-
return {
129-
auth: 'foo:bar',
130-
channel_data: '{"user_id": 1}',
131-
shared_secret: 'foobar',
132-
};
133-
};
134-
135124
const trigger = async () => {
136125
try {
137126
await AsyncStorage.multiSet([

0 commit comments

Comments
 (0)