set up socket server
set up socket server