add socket dependency, setup socket connection