Import Socket api into channels. Closes #411