HTTP in TCP in Websockets in HTTP in TCP, Tunnel all the things!
Client makes an outbound connection to a server. The server can now do net.Dial from the server that will actually do a net.Dial on the client and pipe all bytes back and forth.
Fun times!
server/and
client/how to use. Or don't.... This framework can hurt your head trying to conceptualize.
See also: