Code Monkey home page Code Monkey logo

react-native-socket-io-example's People

Contributors

vinnyoodles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-socket-io-example's Issues

This error show when i press enter in console

D:\react-native-socket-io\node_modules\mongodb\lib\mongo_client.js:421
throw err
^
MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool. (D:\react-native-socket-io\node_modules\mongodb-core\lib\topologies\server.js:336:35)
at Pool.emit (events.js:159:13)
at Connection. (D:\react-native-socket-io\node_modules\mongodb-core\lib\connection\pool.js:280:12)
at Object.onceWrapper (events.js:254:19)
at Connection.emit (events.js:159:13)
at Socket. (D:\react-native-socket-io\node_modules\mongodb-core\lib\connection\connection.js:189:49)
at Object.onceWrapper (events.js:254:19)
at Socket.emit (events.js:159:13)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)

app crashed

node_modules\mongodb\lib\utils.js:123
process.nextTick(function() { throw err; });
^

TypeError: Cannot read property 'emit' of null

Production ready ?

Is the application is production ready for android ? please guide ? can we integrate the firebase ? how ? how to send the queries to Linux server ?

Error: Document is not defined on ReactNative

I am getting document is not defined. Following is how I implemented it.
Image: http://i66.tinypic.com/2n6swp3.png

import React, { Component } from 'react'
import { View, Text, Image, ScrollView } from 'react-native'
import SocketIOClient from 'socket.io-client';

class Game extends Component {
    constructor(props) {
        super(props)

        this.socket = SocketIOClient('http://localhost:8008');
        this.socket.on('message', this.onReceivedMessage);
}
// Event listeners
/**
 * When the server sends a message to this.
 */
onReceivedMessage(messages) {
    alert(message)
}
render() {
    console.log('rerendered!!!!')
    return(
        <View style={{flex:1}}>
           ....
        </View>
    )
  }
}
export default Game

Unknown named module:'xmlhttprequest-ssl'

Hi
I found this error when I try to run a demo.
I have completely installed all node modules, but I found this error.

I have googled for this error and find a solution that XMLHttpRequest work fine in IOS but my platform is Android- 5.0.1.

Thank you.

Android Issues

Hi,

This example is working fine in iOS but in android it is not at all working .

How Can I solve this?
Please help me in solving this

Throws an error

react-native-socket-io-example-master/node_modules/mongodb/lib/mongo_client.js:224 throw err ^

|this| is not a function inside Function.prototype.bind

Hi. I'm trying to build this on the Expo IDE. There seems to be no error but when the app is deployed to the android device, it states the following error:
|this| is not a function inside Function.prototype.bind

Could you please help?

Can't run server with npm run server

I get the following error:
_npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "server"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3

npm ERR! missing script: server
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\GV\Desktop\Native\sos\npm-debug.log_

My debug log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'server' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: server
4 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:151:19)
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:61:5
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:356:5
4 verbose stack at checkBinReferences_ (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:320:45)
4 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:354:3)
4 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:5)
4 verbose stack at ReadFileContext. (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:308:29)
4 verbose stack at ReadFileContext.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16)
4 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:365:13)
5 verbose cwd C:\Users\GV\Desktop\Native\sos
6 error Windows_NT 10.0.15063
7 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "server"
8 error node v6.3.1
9 error npm v3.10.3
10 error missing script: server
11 error If you need help, you may report this error at:
11 error https://github.com/npm/npm/issues
12 verbose exit [ 1, true ]

It take a long time to build with x code

I had cloned this repo and tried to build it with xcode. But it get stuck at "Building reactnativesocketexample: RCTText | Creating static library".

Does anyone have any suggestion about this?
thanks in advance!!!1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.