Skip to content

Commit 71481d6

Browse files
update: readme of cordova websocket plugin for importing it.
1 parent 55aab1d commit 71481d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/plugins/websocket/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ It aims to mimic the [WebSocket API](https://developer.mozilla.org/en-US/docs/We
1111
* ✅ Support for protocols
1212
* ✅ Compatible with Cordova for Android
1313

14-
1514
---
1615

1716
## Usage
1817

1918
### Import
2019

2120
```javascript
22-
const WebSocketPlugin = cordova.plugins.websocket;
21+
const WebSocketPlugin = cordova.websocket;
2322
```
2423

2524
### Connect to WebSocket

0 commit comments

Comments
 (0)