React-native Socket Event Output in console

Source: Internet
Author: User



When running react-native in Xcode, can not avoid to view the log information, but the react-native socket in the log is simply too much, often just see the information they want to see, the moment is the latest log to brush up similar:


nw_socket_handle_socket_event [C5255.1:1] Socket SO_ERROR [61: Connection refused]
nw_socket_handle_socket_event [C5255.2:1] Socket SO_ERROR [61: Connection refused]
nw_connection_get_connected_socket [C5255] Client called nw_connection_get_connected_socket on unconnected nw_connection


Looks like error but does not affect the operation of your own program, solve this print:






Click Product, Scheme, Edit scheme, Run, Arguments, Environment Variable






Add Name:os_activity_mode; Value:disable









React-native Socket Event Output in console


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.