原生web socket连接不上是什么原因啊?

模拟器和浏览器都没有问题,到真机上调试就连接不上websocket。

readyStatereadyState0
WebSocket thread start, helper instance: 0x1740ad8c0
NOTICE: Initial logging level 967

NOTICE: Libwebsockets version: 1.7.8 linwenhai@LindeMacBook-Pro.local-v3.4-49-g9369eea

NOTICE: IPV6 compiled in and enabled

NOTICE: libev support not compiled in

NOTICE: Threads: 1 each 256 fds

NOTICE: mem: platform fd map: 2048 bytes

NOTICE: mem: per-conn: 368 bytes + protocol rx buf

WebSocket (0x1701cfd20) onConnectionError …
Ready state is closing or was closed, code=2, quit websocket thread!
NOTICE: lws_context_destroy

WebSocket (0x1701cfd20) onConnectionError …
WebSocket (0x1701cfd20) onConnectionClosed …
WebSocket thread exit, helper instance: 0x1740ad8c0

我也碰到这各问题,你的解决了吗

这个是服务器没有支持Native访问websocket的协议产生的,需要服务器支持

请问,服务器具体要怎样配置才能支持Native访问呢?