Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {NativeModules} from 'react-native'
const {WebSocketModule} = NativeModules;
import WebSocketModule from 'react-native/Libraries/WebSocket/NativeWebSocketModule';

let settings = {
/** The number of milliseconds to delay before attempting to reconnect. */
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "react-native-reconnecting-websocket",
"version": "1.0.3",
"name": "@react-native-oh-tpl/react-native-reconnecting-websocket",
"version": "1.0.3-0.0.1",
"description": "websocket module",
"main": "index.js",
"harmony": {
"alias": "react-native-reconnecting-websocket"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -16,4 +19,4 @@
"url": "https://github.com/React-Sextant/react-native-reconnecting-websocket/issues"
},
"homepage": "https://github.com/React-Sextant/react-native-reconnecting-websocket#readme"
}
}