npm.io
1.0.1 • Published 5 years ago

react-native-websocket-strong

Licence
ISC
Version
1.0.1
Deps
0
Size
13 kB
Vulns
0
Weekly
0

react-native-websocket-strong

use original Websocket

install

npm i react-native-websocket-strong

example

import WsClient from 'react-native-websocket-strong'

const wsClient = new WsClient()

wsClient.addListener('message', (data) => {
    // recive push data
})

wsClient.addListener('connect', () => {
    // recive connect response
})

wsClient.connect('ws://www.npmjs.com:8080')

Follow-up planning

  • support configure websocket keep alive time

Keywords