Skip to content

Commit

Permalink
text update
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Koifman committed Oct 21, 2023
1 parent 184da01 commit 3d75503
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/pub-sub-events/handling-private-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ nav_order: 12

## 17.12. Handling Private events

Handling Private events is almost identical to handling Replacing or Queueing events. In this description, most things are repeated, and the differences are noted.
Handling Private events is almost identical to handling Replacing or Queueing events. In this description, most things are repeated, and differences are noted separately.

The client application subscribes to a Private event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
A client application subscribes to a Private event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
```java
public void subscribeToPEvent(String eventName, RemoteEventListener listener)
```
Expand Down
4 changes: 2 additions & 2 deletions docs/pub-sub-events/handling-queueing-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nav_order: 10

Handling Queueing events is almost identical to handling Replacing events. In this description, most things are repeated, and the differences are noted.

The client application subscribes to a Queueing event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
A client application subscribes to a Queueing event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
```java
public void subscribeToQEvent(String eventName, RemoteEventListener listener)
```
Expand All @@ -18,7 +18,7 @@ The difference from the subscription method of Replacing events is only in the n
* <span class="param">eventName</span> is the event name described in the previous section;
* <span class="param">listener</span> is an event listener of type <span class="datatype">RemoteEventListener</span>.

The application provides the event name and implementation of the <span class="datatype">RemoteEventListener</span> interface to the method call. The interface declares two methods to implement:
An application provides the event name and implementation of the <span class="datatype">RemoteEventListener</span> interface to the method call. The interface declares two methods to implement:
```java
public interface RemoteEventListener {
void accept(ClientEndpoint clientEndpoint, RemoteEvent remoteEvent);
Expand Down
4 changes: 2 additions & 2 deletions docs/pub-sub-events/handling-replacing-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav_order: 8

## 17.8. Handling Replacing events

The client application subscribes to a Replacing event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
A client application subscribes to a Replacing event by calling the following method of the <span class="datatype">ClientEndpoint</span> class:
```java
public void subscribeToREvent(String eventName, RemoteEventListener listener)
```
Expand All @@ -16,7 +16,7 @@ The method has two parameters:
* <span class="param">eventName</span> is the event name described in the previous section;
* <span class="param">listener</span> is an event listener of type <span class="datatype">RemoteEventListener</span>.

The application provides the event name and implementation of the <span class="datatype">RemoteEventListener</span> interface to the method call. The interface declares two methods to implement:
An application provides the event name and implementation of the <span class="datatype">RemoteEventListener</span> interface to the method call. The interface declares two methods to implement:
```java
public interface RemoteEventListener {
void accept(ClientEndpoint clientEndpoint, RemoteEvent remoteEvent);
Expand Down

0 comments on commit 3d75503

Please sign in to comment.