Socket as class var