Skip to content

Commit a50fd1e

Browse files
author
doga
committed
Updated Readme according to the new changes
1 parent f4d888a commit a50fd1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ With this before and after I observed the following within a large flat list.
5252
In order to connect to a real device you will need to set the IP of your computer, for example:
5353

5454
```
55-
export default withPerformanceMonitor(AwesomeChat, 'AwesomeChat', '192.168.1.10');
55+
export default withPerformanceMonitor({ WrappedComponent: AwesomeChat, _id: 'AwesomeChat', ip: '192.168.1.10'});
5656
```
5757

5858
By default the server is listening on port 8125 for event updates and 8126 for websocket.
5959
If you need to configure the port, because you are tunneling your request or similar, and or disable the Websocket communication, you can do it like this:
6060

6161
```
62-
export default withPerformanceMonitor(AwesomeChat, 'AwesomeChat', '192.168.1.10', undefined, undefined, 80, false);
62+
export default withPerformanceMonitor({WrappedComponent: AwesomeChat, _id: 'AwesomeChat', ip: '192.168.1.10', events: undefined, showLogs: undefined, port: 80, enableWS: false});
6363
```
6464

6565
# How it works

0 commit comments

Comments
 (0)