link mux can be based on TCP, Websocket(should implement io.ReadWriteCloser), something stream link low level should implement io.ReadWriteCloser link implement: io.ReadWritCloser io.closeWriter version not recommend version 0 version 1 recommend version 2 or master API doc godoc link Thanks @Hex11 He gives me a lot of help to broaden my horizon and mind. smux A lot of codes learn from This project.