socketio / socket.io-client-cpp

C++11 implementation of Socket.IO client
MIT License
2.26k stars 730 forks source link

Is there any way to set IO.Options?? #251

Open kimhc999 opened 4 years ago

kimhc999 commented 4 years ago

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

coreyp1 commented 4 years ago

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 commented 4 years ago

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

coreyp1 commented 4 years ago

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