在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vinnyoodles/react-native-socket-io-example开源软件地址(OpenSource Url):https://github.com/vinnyoodles/react-native-socket-io-example开源编程语言(OpenSource Language):JavaScript 43.7%开源软件介绍(OpenSource Introduction):React Native Socket.io ExampleA demo for implementing a mobile chatroom as well as practice for myself using React Native and Socket.io. I talked more about this in my Medium article Getting startedFirst, install React Native, Socket.io and other node modules. $ npm install To start the server: $ npm run server In a separate terminal tab, start the client app. $ npm run ios To mock a conversation, I allowed the server to participate. The process that is running the server is listening for stdin. In other words, you can type in the server and it will appear in the chatroom. $ npm run server
> [nodemon] 1.11.0
> [nodemon] to restart at any time, enter `rs`
> [nodemon] watching: *.*
> [nodemon] starting `node server`
> listening on *:3000
> Hello, this is the server speaking. How may I assist? Demo |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论