// Client returns a new muxado client-side connection using conn as the transport. func Client(conn net.Conn) Session { return &sessionAdaptor{proto.NewSession(conn, proto.NewStream, true, []proto.Extension{ext.NewDefaultHeartbeat()})} }
// Server returns a muxado server session using conn as the transport. func Server(conn net.Conn) Session { return &sessionAdaptor{proto.NewSession(conn, proto.NewStream, false, []proto.Extension{ext.NewDefaultHeartbeat()})} }