Hi! I have server with rooms to chat. Full url is ws://93.171.XXX.XX:8080/conversation_realtime/sportspace581a1541590b21.14581077".
But I have to connect to this by 2 steps:
1) connect to "ws://93.171.XXX.XX:8080"
2) subscribe to room "conversation_realtime/sportspace581a1541590b21.14581077"
In JS in "goswebsocket" library it looks like:
var _WS_URI = "ws://93.171.242.80:8080";
var webSocket = WS.connect(_WS_URI);
webSocket.on("socket/connect", function(session){
session.subscribe("conversation_realtime/sportspace581a1541590b21.14581077", function(uri, payload){
console.log(payload.message.text);
}
}
Can I realize it in swift in your library? Can't find subscribing to rooms.
Hi! I have server with rooms to chat. Full url is ws://93.171.XXX.XX:8080/conversation_realtime/sportspace581a1541590b21.14581077".
But I have to connect to this by 2 steps: 1) connect to "ws://93.171.XXX.XX:8080"
2) subscribe to room "conversation_realtime/sportspace581a1541590b21.14581077"
In JS in "goswebsocket" library it looks like:
Can I realize it in swift in your library? Can't find subscribing to rooms.