0xZhangKe / WebSocketDemo

用于简化 WebSocket 在 Android 平台使用的封装方法
Other
817 stars 144 forks source link

本地测试的时候连接不成功 #60

Closed Tomas-YI closed 4 years ago

Tomas-YI commented 4 years ago

本地生成一个ServerSocket然后模拟器上运行客户端连不上,setting.setConnectUrl("wss://192.168.0.254:55556"); java.net.URISyntaxException: Illegal character in path at index 4: your connect url at libcore.net.UriCodec.validate(UriCodec.java:63)

0xZhangKe commented 4 years ago

@michaelyiwei 看报错信息,应该是你的 url 字符不对