corrected a couple of issues

Broadcasting instead of emit,
set name with name argue instead of socket.nickname since it might not
have been written.