update socket rules