Sub ws_Connected
Dim maxTextSize As Long = 100000
Dim jo As JavaObject = ws
jo = jo.GetFieldJO("session").RunMethod("getPolicy", Null)
jo.RunMethod("setMaxBinaryMessageBufferSize", Array(maxTextSize))
jo.RunMethod("setMaxBinaryMessageSize", Array(maxTextSize))
jo.RunMethod("setMaxTextMessageBufferSize", Array(maxTextSize))
jo.RunMethod("setMaxTextMessageSize", Array(maxTextSize))
End Sub
This gives me java.lang.RuntimeException: Method: getPolicy not found in: java.util.concurrent.CompletableFuture
I think it MIGHT have something to do with me running the program in non-UI mode?