moved socket connect to header
add socket and whoIsOnline to the header