标签: ios spring-websocket
我正在使用STOMPClient在iOS平台上使用websocket。 Spring w / sockJS在服务器端。此链接适用于浏览器,但不适用于iOS
http://172.16.0.229:8081/ineo-websocket?access_token=eyJraWQiOiIxZjB6eE5rS2VvVzJiMkhhRVdZSFBaNlBCRVJRa1p4VUF5bkUzRzB0UGg0IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULmN0YWYxVFhZVjU3TXA3Wk9PU0NNRUVLMC1JTkVsX2IwbzN2b2FNQXVQQ2suY3ZHNk5HUUtqOWJGRGEyMjlpRERvQXpGT0hCTVRFUU9UOWIwb3RUY2daND0iLCJpc3MiOiJodHRwczovL2Rldi00NDc1Njgub2t0YXByZXZpZXcuY29tL29hdXRoMi9kZWZhdWx0IiwiYXVkIjoiYXBpOi8vZGVmYXVsdCIsImlhdCI6MTUxNTc0NDcxNywiZXhwIjoxNTE1ODMxMTE3LCJjaWQiOiIwb2FkYmRhbW90R3AxSmlzZjBoNyIsInVpZCI6IjAwdWRpZWt2N29KbUc1Y1prMGg3Iiwic2NwIjpbIm9mZmxpbmVfYWNjZXNzIiwicHJvZmlsZSIsIm9wZW5pZCJdLCJzdWIiOiJ2aW5ocXVhbmcubHV1QG9mZmljaWVuY2UuY29tIn0.nhXLzoHCMYnWDdA6PHULDP6PG4Xg0vdZhfDPk0_GDuZCX0WPt1_2F67-z9rX34Ob82vvWdfS-Llpg26tFQ8Z6YxSZ0YT_yZmEYbEdPfpn3nIr4y9YBiHSddpkFypxvoEQ0m4Ko_I-JLQFXJ49e9X6Cedt7qN0SquVnpmonNej1YaYBSlYNbQAlS3_fpOd-qdXGMmF4JsKrpuRLl4fNC1wZAPU6TrGTRAsiz9yp6X-augI97kLzu9U4uRyJHLWLg-XVeTcwmiJ08tvlHvANDDGPmGTOFeguWAbwnohuhgKhd7IKt3dHqqukUbt1F7nZnEkNZWLjPj1AQdawF_SFKQPA
let client = STOMPClient(host: urlString, port: 8081)
我得到了什么:
SocketClient连接错误:可选("提供节点名称和服务名称, 或者不知道")