init, back, away and connection aspects of socket is done.
Not complete...