Init channels
Send pong
Cleanup and fixes
Insert line to channel buffer