Feature/ws global timeout

add websocket global timeout as a configure option.