Skip to content

Commit 0732556

Browse files
authored
Merge pull request #152 from Gatulibu/patch-1
Corrected typos in README.md
2 parents eb0d161 + 81cd0b9 commit 0732556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Here's the API in a nutshell.
7878

7979
```java
8080
// Create a new Pusher instance
81-
PusherOption options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
81+
PusherOptions options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
8282
Pusher pusher = new Pusher(YOUR_APP_KEY, options);
8383

8484
pusher.connect(new ConnectionEventListener() {
@@ -121,7 +121,7 @@ More information in reference format can be found below.
121121
The standard constructor take an application key which you can get from the app's API Access section in the Pusher dashboard.
122122

123123
```java
124-
PusherOption options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
124+
PusherOptions options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
125125
Pusher pusher = new Pusher(YOUR_APP_KEY, options);
126126
```
127127

@@ -141,7 +141,7 @@ If you need finer control over the endpoint then the setHost, setWsPort and setW
141141
In order to send and receive messages you need to connect to Pusher.
142142

143143
```java
144-
PusherOption options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
144+
PusherOptions options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
145145
Pusher pusher = new Pusher(YOUR_APP_KEY, options);
146146
pusher.connect();
147147
```
@@ -165,7 +165,7 @@ After disconnection the Pusher instance will release any internally allocated re
165165
Implement the `ConnectionEventListener` interface to receive connection state change events:
166166

167167
```java
168-
PusherOption options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
168+
PusherOptions options = new PusherOptions().setCluster(YOUR_APP_CLUSTER);
169169
Pusher pusher = new Pusher(YOUR_APP_KEY, options);
170170
pusher.connect(new ConnectionEventListener() {
171171
@Override

0 commit comments

Comments
 (0)