React native and socket.io node not working

后端 未结 4 1171
一向
一向 2021-02-18 21:34

Below is my react native component and node server.js code that I am trying to connect to my node websocket backend.

My react code is running on the same computer as th

4条回答
  •  梦如初夏
    2021-02-18 22:31

    Also, on your server end, change const websocket = socketio(server) to const websocket = socketio.listen(server);

提交回复
热议问题