init socketstream