socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Is there any way to set IO.Options??

Open kimhc999 opened this issue 5 years ago • 3 comments

Hello,

Is there any way to set IO.Options?? When I developed on iOS or Android, I set options like this.

val option: IO.Options = IO.Options()
option.forceNew = true
option.reconnection = true
option.transports = arrayOf("websocket", "polling")
option.rememberUpgrade = false
socket = IO.socket(endpoint, option)

I think not implemented yet. Is there anyway to set?

Thank you

kimhc999 avatar Feb 19 '20 11:02 kimhc999

Everything is documented in the API here: https://github.com/socketio/socket.io-client-cpp/blob/master/API.md

For example, reconnection options are here: https://github.com/socketio/socket.io-client-cpp/blob/master/API.md#transparent-reconnecting

coreyp1 avatar Mar 18 '20 03:03 coreyp1

I read the document , but not find any way to set transport options such as option.transports = arrayOf("websocket", "polling")

Everything is documented in the API here: https://github.com/socketio/socket.io-client-cpp/blob/master/API.md

For example, reconnection options are here: https://github.com/socketio/socket.io-client-cpp/blob/master/API.md#transparent-reconnecting

xiongyang avatar Apr 18 '20 06:04 xiongyang

According to #71 and #91, it does not look as though this project supports polling, just websockets.

coreyp1 avatar Apr 26 '20 00:04 coreyp1