expose socket channel globally