socket io setup between master and client