Skip to content

Commit c348e0f

Browse files
committed
chore: update readme
1 parent 154a7c5 commit c348e0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ npm install react-native-fast-ws --save
2929

3030
This library implements the [WebSocket Web API](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) and is meant to be a drop-in replacement for React Native's WebSocket implementation.
3131

32+
Under the hood, it uses:
33+
- on iOS, built-in WebSocket API ([URLSessionWebSocketTask](https://developer.apple.com/documentation/foundation/urlsessionwebsockettask))
34+
- on Android, OkHttp (same as React Native)
35+
3236
```ts
33-
import { WebSocket } from 'react-native-fast-ws';
37+
import { WebSocket, Blob } from 'react-native-fast-ws';
3438

3539
// Create a new WebSocket instance
3640
const ws = new WebSocket('wss://echo.websocket.org');

0 commit comments

Comments
 (0)