update socket terminal