That refresh interval is something different.
There's separate logic in the driver which will disconnect every 30 minutes. I'm sure there was a reason for this so I don't want to mess with it w/out a lot of testing first.. just wondered if anyone knew what that reason was
def pingWebSocket() {
if (now()-(30*60*1000) >= state.webSocketOpenTime) {
logDebug "WebSocket has been open for 30 minutes, reconnecting"
initialize()
return
}
def pingMsg = [ event: "ping"]
safeWSSend(pingMsg, false)
}