Having multiple connections with expo in the same time

无人久伴 提交于 2021-02-11 13:03:06

问题


I am trying to make an application with multiple users using SSE Emitter on React Native and Expo, so, for testing I need at least 4 expo connections in the same time.

In this way, I used expo start on four terminal tabs and ran application in Web Browser. On the first three chrome tabs all works great, the request are fetching and sending valid data, but on the first one the requests are just pending. I thought it could be from CORS, cache control header, so I setted Cache-Control: 'no-cache' in Spring and it still doesn't work.

Also, on the fourth tab in Headers tab I get the warning: 'Provisional headers are shown':

Another way to mention is that, port 19007 is also used on third tab (the referer and origin header), so I think this may be actually an expo limit setted somewhere to only three simultaneously connections. I just ran expo start and press y when it warns me about the port being already in use, and if I want to open a new connection.

Any hint for a solution?

来源:https://stackoverflow.com/questions/65499201/having-multiple-connections-with-expo-in-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!