Jmu5667 Well-Known Member Licensed User Longtime User Sep 6, 2018 #1 Hello Currently the websocket has a built in timeout of 30 seconds. 1. Is it possible to change to a different value 2. If it is not possible, and I want abort the connection attempt before the 30 seconds timeout, can I just simply re-initialize the socket to do this. Regards John.
Hello Currently the websocket has a built in timeout of 30 seconds. 1. Is it possible to change to a different value 2. If it is not possible, and I want abort the connection attempt before the 30 seconds timeout, can I just simply re-initialize the socket to do this. Regards John.
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2018 #2 You can change it with: Code: Copy WebSocket.Initialize(...) Dim options As JavaObject = WebSocket options.GetFieldJO("options").RunMethod("setSocketConnectTimeout", Array(10000)) 'connect Upvote 0
You can change it with: Code: Copy WebSocket.Initialize(...) Dim options As JavaObject = WebSocket options.GetFieldJO("options").RunMethod("setSocketConnectTimeout", Array(10000)) 'connect
Jmu5667 Well-Known Member Licensed User Longtime User Sep 6, 2018 #3 Erel said: You can change it with: Code: Copy WebSocket.Initialize(...) Dim options As JavaObject = WebSocket options.GetFieldJO("options").RunMethod("setSocketConnectTimeout", Array(10000)) 'connect Click to expand... Awesome, thanks Upvote 0
Erel said: You can change it with: Code: Copy WebSocket.Initialize(...) Dim options As JavaObject = WebSocket options.GetFieldJO("options").RunMethod("setSocketConnectTimeout", Array(10000)) 'connect Click to expand... Awesome, thanks