DetachedSocket constructor Null safety

DetachedSocket()